Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frameset and innerHTML, help please

Status
Not open for further replies.

SuperCyber

Programmer
Aug 10, 2001
35
US
Is there a way that I can retrieve all of the html code that is shown in a web page? I am using innerHTML to get the html code from one of my web pages and I can retrieve all of the html code except that which is in a frameset in the middle of the page. Any help is greatly appreciated.

Thank you,
Brian
 
if the pages are on the same domain you should be able too, if not you shouldn't be able too for security reasons.
 
All I want to do is take a web page that has a frame set in it and pull all of the html code from the entire page (including the code that is showing to the user from the frameset) into a variable. Hope I am explaining this correctly.

Thanks,
Brian
 
Wrap all the page content into <div id=&quot;globaldiv&quot;> and do this:

a = document.getElementById('globaldiv').innerHTML;
alert(a);

Is this what you need?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top