Hi,
I am using .NET web browser control. I want to suppress all the javascript errors,but not other box like security alert. so webbrowser.suppressjavascript = true will not work here.
I found the following solution on msdn.
privatevoid SuppressScriptErrors(){
if (webBrowser1.Document !=
null)
{ webBrowser1.Document.Window.Error +=new HtmlElementErrorEventHandler(scriptWindow_Error); } }privatevoid scriptWindow_Error(object sender, HtmlElementErrorEventArgs e) { MessageBox.Show("Suppressed error!"); e.Handled
= true
; }
But its not wokring properly. I m still getting javascript error popups.
Can anybody help me asap?
Mehul