How to call javascript from c#?

  • Thread starter Thread starter Ilyas
  • Start date Start date
I

Ilyas

Hi

I a hosting the Web Browser control, in my c# windows application. The
idea is that I can load a html document and invoke some javascript on
this html page from my c# application and have the results returned to
my c# application.

How can I achieve this?
 
try something like this..

Browser.location="javascript:document.status='Result=Hello';";

you can the read the status value from the status change event in your c#
app.

(Browser.location may not work, try Browser.Navigate)
 
Back
Top