Rank: Newbie Groups: Member
Joined: 3/7/2016 Posts: 8
|
Hi everyone!
I was wondering, if there is a simple way to get the DomContentLoaded DOM event in the .NET code? So far, I have only been able to find the Loaded event, which is something different.
Thanks for all pointers!
Best regards, Christoph
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, You can set WebView.JSInitCode to some JavaScript that handles this event in JavaScript, then call back into .NET through JS extension interface: http://www.essentialobjects.com/doc/webbrowser/advanced/jsext.aspxThanks!
|
Rank: Newbie Groups: Member
Joined: 3/7/2016 Posts: 8
|
Hi!
The JSInitCode property was the information I was missing. Now that I know how to execute javascript when a page loads, everything is working nicely. Thanks a lot for the info!
Best regards, Christoph
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Great! Please feel free to let us know if there is anything else.
|