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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top