Hi,
I added a a web browser control. Now when I open a site, it has "javascript" errors on it. So the WebBrowser keeps prompting. To stop the prompting I added:
VB Code:
  1. WebBrowser.Silent= True

Now it doesn't prompt, instead it automatically opens the debugger. When I close the debugger, the program crashes.
Is there a way to trap the javascript errors on the loading page and silently append them to a text file, instead of opening the debugger or prompting? And then continue with the loading of the rest of the page.

I can write the code to append to text file, but how to trap the error and store in a variable?
Thanks