thanks Martin, I've decided to try and use the WebBrowser control.
I'm looking at it to see if I can figure out how to close the javascript
window using that route. It seems like I should be able to access it from
the document object.
If anyone has any thoughts on that or has tried this please let me know, and
if I find the answer I will post back.
Michael Duclon
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
Michael Duclon wrote:
>Does anyone know how I might use the webclient class to navigate to a web
page in a vb.net app, and then if a JavaScript popup appears from the web
page I go to, read the message in it or content of it, then close it so I
can continue on.
I don't know how to reference the popup box or send a command to click
the ok button to close it.
WebClient does a HTTP request and fetches the HTTP response for you but it
does not know anything about HTML documents or HTML documents with
JavaScript.
If you want to render a HTML document like a browser does then in .NET 2.0
you have the WebBrowser control
<http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx>
I am not sure however there is a way then from .NET to close JavaScript
alert dialogs.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/