samedi 27 février 2021

copy code in html file and paste it into javascript file

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