is possible to copy the whole content of one html file to javascript variable in other html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

is possible to copy the whole content of one html file to javascript variable in other html?

a.html have javascript variable copy it contain full contant of b.html...

8th Aug 2017, 2:47 PM
Tharanes Thaara
Tharanes Thaara - avatar
1 Answer
0
You could open the HTML file as if it were text, then copy all the text into an array. You can then do whatever you want with the data in the array.
8th Aug 2017, 9:29 PM
Domenic Mitri
Domenic Mitri - avatar