Hi!
document.documentElement.innerHTML
See help about the documentElement property of the document object in MSDN, as well as a note there about the getting HTML of the complete document.
Hope this helps.
>Could someone please tell me what is the most straightforward way to get to the
full HTML source of a web page once it is loaded into an instance of IE or a WebBrowser control? ...document.body.innerHTML and ...outerHTML don't include the header stuff between the outer HTML tags. I'm looking for a way to reference the entire text, as displayed by the View Source menu commands. Is there a simple way to get to this directly from the document object?
>
>TIA
>
>Mike
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.