Jeremy
Jeremy

Reputation: 46380

Initiate script in embedded browser from the container application

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

Answers (2)

Quintin Robinson
Quintin Robinson

Reputation: 82345

Yes There is..

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

Upvotes: 1

Matt Hamilton
Matt Hamilton

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

Related Questions