views:

48

answers:

2

If I have an embedded browser in a windows form, is it possible to initiate a javascript method from the container application?

+2  A: 

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

Matt Hamilton
+1  A: 

Yes There is..

webBrowser.Document.InvokeScript("doSomething()");
Quintin Robinson