In my form, when i click webbrowser1, many window IE advertising opened.
I used my code:
webBrowser1.ScriptErrorsSuppressed = true;
But it does not work.
You can use this link
If here pop up means WebBrowser open a webpage in a new Internet Explorer, then please follow these steps to avoid such condition:
Use these codes in the event handler, like:
private void webBrowser1_NewWindow(object sender, CancelEventArgs e) {
webBrowser1.Navigate(webBrowser1.StatusText);
e.Cancel = true;
}
Here, StatusText actually holds the URL of the target webpage original opened in Internet Explorer. Besides, e.Cancel = ture is to cancel the original action to open webpage in Internet Explorer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With