Answer the question
In order to leave comments, you need to log in
How to store html code for js in a separate file?
In general, you need to store html in a separate file so that during compilation the variable that refers to the file is filled with content, such as innerHTML. let div = path/file.html;
To have the html in the div from the file
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question