Reputation: 46380
If I have an embedded browser in a windows form, is it possible to initiate a javascript method from the container application?
Upvotes: 0
Views: 207
Reputation: 82345
Yes There is..
webBrowser.Document.InvokeScript("doSomething()");
Upvotes: 1
Reputation: 204219
You can use Document.InvokeScript, as outlined in this excellent MSDN article:
How to: Implement Two-Way Communication Between DHTML Code and Client Application Code
Upvotes: 2