Web Browser - stop popups

Cheetah

Well-known member
Joined
Oct 12, 2006
Messages
232
Programming Experience
Beginner
Hi there,

Don't need this anymore but i have a different problem.

I want to stop popups from showing when i am browsing, how would i go about doing this? Also if any scripts don't work or anything i dont want a prompt

Thanks.
 
Last edited:
Tried these?
VB.NET:
WebBrowser1.ScriptErrorsSuppressed = True
VB.NET:
Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) _
Handles WebBrowser1.NewWindow
    e.Cancel = True
End Sub
 
Cheers for that.

I was also referring to the javascript popup boxes that give you a message (not the errors) the ones that are meant to come up from the website.

Thanks.
 
Back
Top