We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
I you worked with the WebBrowser control you probably met the following popup:
I have started to use the WPF WebBrowser control in some of my applications but when I tried to disable the script errors I had a small problem the property WebBrowser.ScriptErrorsSuppressed was not there, bummer…
Here is how it is done:
This is the java script we are injecting:
And now The way to inject the script to the WebBrowser control:
Don’t forget to do this every time before you navigate.
That’s it! Now you are script error free.
Tags :Script ErrorsScriptElementWebBrowser
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd