G
Guest
Here's the problem:
I've got an AxWebBrowser control on a form that I'm writing in c#. I have
an algorithm which navigates through different pages on the control. I'd
like to be able to supress message boxes that pop up while I'm navigating the
pages. The 'Silent' property does not do this, because it is
vbscript/javascript functions like msgbox() that are the problem.
For example, if I navigate to the site http://fpe.com, you'll notice that if
you wait a couple of seconds after the page has loaded completely, a message
box will popup. I can't figure out a good way of suppressing or dismissing
these message boxes when navigating within the AxWebBrowser.
It would probably be possible to monitor for message boxes in my application
in another thread and simulate mouse clicks on the boxes. However, it's not
always easy to know which button to click if cancelling the dialog is not
available.
So, basically, is there a way to suppress these dialogs and prevent them
from appearing in my AxWebBrowser control. I don't want ANY popups at all,
so even a solution that prevents all popups would be great.
Thanks so much in advance!
Aaron
I've got an AxWebBrowser control on a form that I'm writing in c#. I have
an algorithm which navigates through different pages on the control. I'd
like to be able to supress message boxes that pop up while I'm navigating the
pages. The 'Silent' property does not do this, because it is
vbscript/javascript functions like msgbox() that are the problem.
For example, if I navigate to the site http://fpe.com, you'll notice that if
you wait a couple of seconds after the page has loaded completely, a message
box will popup. I can't figure out a good way of suppressing or dismissing
these message boxes when navigating within the AxWebBrowser.
It would probably be possible to monitor for message boxes in my application
in another thread and simulate mouse clicks on the boxes. However, it's not
always easy to know which button to click if cancelling the dialog is not
available.
So, basically, is there a way to suppress these dialogs and prevent them
from appearing in my AxWebBrowser control. I don't want ANY popups at all,
so even a solution that prevents all popups would be great.
Thanks so much in advance!
Aaron