>I'm using _webbrowser4 in a VFP6 form and I would like to capture the html of the current url, either to a memory variable or write it to a file. So far I can't see how to do that. Any suggestions?
When I wrote the _webbrowser4 subclass, I exposed a property called .cSourceHTML but it only works for files and not HTTP URLs. So the way you get the actual HTML source from a typical web page is to go directly to the IE web browser DOM (document object model) using the line of code below:
cHTML=_webbrowser4.document.all.item(0).outerhtml