|
Rank: Member Groups: Member
Joined: 8/4/2015 Posts: 10
|
I want to know which event is the best place to modify some piece of rendered HTML after a webpage has loaded successfully. I want to add some HTML tags to the document after parsing the rendered HTML. Please advise. Any example link will be great.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You will need to do this in your page with JavaScript. You can inject your own JavaScript into the page through WebView.JSInitCode property.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/4/2015 Posts: 10
|
Isn't there a method or event where I can get the Html of the page before it loads? I checked the LoadHtmlAndWait() function and it works beautifully. I was thinking a way to get all HTML dynamically, modify some bits and then load again. Just wondering if it's possible without javascript or not.
Thanks in advance.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You would always do such thing with JavaScript. EO.WebBrowser only provides you the necessary "bridges" for you to run JavaScript (for example, JSInitCode is one, EvalScript is another).
Thanks!
|
|