Webbrowse disable message dialog problem

Started by Steven Hua, September 06, 2012, 11:39:57 AM

Previous topic - Next topic

Steven Hua

Hello,
I have a problem with the WebBrowser disable webpage error or javascript error message dialog,
FF3.6 no see WebBrowser Control code, how to disable message dialog? Set  "Silent" is not good, through the IOleCommandTarget to how to achieve it?

José Roca

You have to turn off the Scripting Debugger in Internet Explorer. To turn off the Scripting Debugger in Internet Explorer, on the Tools menu, click Internet Options. On the Advanced tab, select the Disable script debugging check box, and then click OK.

Steven Hua

thank you ! 
Does not setting in Internet Explorer ,Using PB code?
I find the article,  convert PB code is failed,as follows,

How to handle script errors as a WebBrowser control host
http://support.microsoft.com/default.aspx?scid=kb;en-us;261003

how to  converted into PB code ?

thanks

José Roca

You can't. This is something that has to be implemented in the OLE container. You can disable execution of scripts by checking the DLCTL_NOSCRIPTS option of the Ambient properties of the control.