Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining full HTML source from WebBrowser control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00647241
Message ID:
00651920
Views:
20
Duhh! I should have thought of that. OK, you've completely solved the problem and earned your three stars.
Mike

>Hi!
>
>Try also outerHTML property of mentioned object.
>
>>Hi Vlad,
>>
>>Thanks for the tip. This is the closest I've yet seen to what I was looking for. Note, however, that it doesn't quite pick everything up: it doesn't get the outer HTML tags, for example. It does get the HEAD section, however. I'm not sure if it's possible for this to miss anything sandwiched between the initial HTML and HEAD, and it definitely is not quite as complete as View Source.
>>
>>Mike
>>
>>>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
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform