Hentiki Posted October 19, 2005 Share Posted October 19, 2005 Howdy folks, Im trying to do a script of somekind that can store the entire sourcecode of a html page into a simple var. Problem is that is has to be done with either Javascript or Java (preferebly Javascript) Is there any way to pull this one off? Link to comment Share on other sites More sharing options...
0 GatorV Posted October 19, 2005 Share Posted October 19, 2005 I don't know but maybe this can work: var source = document.getElementsByTagName("HTML")[0].innerHTML; Link to comment Share on other sites More sharing options...
0 Josh Posted October 19, 2005 Share Posted October 19, 2005 And if that doesn't work for some unknown reason at least try the same with the BODY tag Link to comment Share on other sites More sharing options...
Question
Hentiki
Howdy folks,
Im trying to do a script of somekind that can store the entire sourcecode of a html page into a simple var. Problem is that is has to be done with either Javascript or Java (preferebly Javascript)
Is there any way to pull this one off?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts