Using the webbrowswer control to cruise a site. Sometimes errors occur which involve a javascript popup box. I would like to do a couple of things when this happens.
Just do this:
window.alert = function(txt) { // Do something }
This will allow you to do a callback or anything else you want with the alert text.