Fighterfox
01-20-2011, 03:00 PM
I would like to get the source of any page I specify as a JavaScript string. I can use
window.location = "view-source:http://www.dynamicdrive.com";
to print the source code to the user, but that's not what I want to do.
Can I get the entire source of a page (e.g. http://www.dynamicdrive.com) as a JavaScript string, so that I can analyze and extract the parts which I'm interested in.
window.location = "view-source:http://www.dynamicdrive.com";
to print the source code to the user, but that's not what I want to do.
Can I get the entire source of a page (e.g. http://www.dynamicdrive.com) as a JavaScript string, so that I can analyze and extract the parts which I'm interested in.