S
S
sergeevpetro2016-09-12 01:22:30
C++ / C#
sergeevpetro, 2016-09-12 01:22:30

How to get the "full" HTML code of a page in WebBrowser?

I don’t understand how to pull out all the code, including which is loaded, for example, by javascript. The DocumentText function only receives the source code (no padding).
How to get everything?
PS TWebBrowser component.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2016-09-12
@xmoonlight

In the direction of DOM'a you need to dig ....

D
Dmitry Eremin, 2016-09-12
@EreminD

That's it

V
Vladimir S, 2016-09-13
@hePPer

try like this

var result = webBrowser1.Document.GetElementsByTagName("html")[0].InnerHtml;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question