This behavior is highly undesirable since I can see that Outlook never
displays an error message with the same HTML page, nor does Internet
Explorer, which only shows a small warning icon and details on the bottom
left corner instead of an annoying popup message.
Does someone know how do I achieve same effect with the webbrowser OCX
control?
Thanks!
The easiest way is to set Silent property to true. That would just
suppress those prompts. If you want to be smarter and actually get the
text and code of the error, line number and so on, see KB Article
KB261003 "How to handle script errors as a WebBrowser control host"
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925