Windows.Forms.WebBrowser Javascript

  • Thread starter Thread starter daniel.manges
  • Start date Start date
D

daniel.manges

I'm working on a .NET application using Google Maps, but since the page
is updated with Javascript, I think I need to use Javascript to get
directions from the page. Does anybody know how to invoke javascript
commands on a Windows.Forms.WebBrowser and get the results ?
 
I'm working on a .NET application using Google Maps, but since the page
is updated with Javascript, I think I need to use Javascript to get
directions from the page. Does anybody know how to invoke javascript
commands on a Windows.Forms.WebBrowser and get the results ?

A WebBrowser instance has a property named Document
<http://msdn2.microsoft.com/en-us/library/6s982aac(en-US,VS.80).aspx>
which is an instance of HtmlDocument
<http://msdn2.microsoft.com/en-us/library/system.windows.forms.htmldocument.aspx>
and has a method named InvokeScript
<http://msdn2.microsoft.com/en-us/library/c143s1sy(en-US,VS.80).aspx>
 
Back
Top