Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling alert window in WebBrowser control

i am using VS 2005 and WebBrowser control. When i using component to navigate to specified page i get scenario error, like "On this page javascript scenario error" and two buttons: yes or no executing scenario. How to prevent alert windows and continue browsing without this messages?

like image 323
Vytas P. Avatar asked Mar 29 '11 06:03

Vytas P.


1 Answers

Try

WebBrowser1.ScriptErrorsSuppressed = true;
like image 166
abatishchev Avatar answered Oct 08 '22 21:10

abatishchev