I'm trying to get entire html file content and paste it inside the JavaScript file.
for example, I have a html file like this: hello.html
<div>
<a>hello world</a>
</div>
and in js file I want to paste that html content. so it looks like this: hello.js
//pasted html file
<div>
<a>hello world</a>
</div>
is their method or function that can do similar job like that?
Aucun commentaire:
Enregistrer un commentaire