WebBrowser Script Error Suppress Code not Working? How to Properly Suppress JavaScript Error

This page is going to show you a very simple and very short solution for blocking the annoying script error pop up that appears when navigating almost any website with the web browser control in Visual Basic 6.

Proper Web Browser Script Error Suppression Code

Assuming the name of your WebBrowser control is [WB]:

If you are looking for the code solution to REMOVE all javascript code from a web page then search this site, using the search box, for WebBrowser stop javascript.