How do you get the content or source code of a HTML file?
I am using ie_WebBrowser.Document.Body.Innerhtml. That only gives me everything between the body tags. I need everything between the <HTML> tag.
Thanks
Printable View
How do you get the content or source code of a HTML file?
I am using ie_WebBrowser.Document.Body.Innerhtml. That only gives me everything between the body tags. I need everything between the <HTML> tag.
Thanks
try outerhtml
Hmmm... might not be possible, but you might try something like this:
ie_WebBrowser.Document.HTML.Innerhtml
Also, if you have any server-side capabilities, this isn't too hard to achieve.
cudabean
Thanks for your replies but neither worked.
Crptcblade helped me out with this WebBrowser1.Document.DocumentElement.Innerhtml.