read this thread if you want to continue:http://groups.google.com/groups?hl=en&threadm=480101c0ee00%246b954810%24a4e62ecf%40tkmsftngxa06&rnum=1&prev=/groups%3Fq%3Dwebbrowser%2Bsuppress%2Balert%2Bmessage%2Bbox%26hl%3Den%26rnum%3D1%26selm%3D480101c0ee00%25246b954810%2524a4e62ecf%2540tkmsftngxa06 The method is to override the javascript functions with stubs:function alert() {} function prompt() {} function confirm() {}The place to override these function is NavigateComplete2.
you just need to implement an OnError event handler in your code to prevent the error message boxes, see details at: http://support.microsoft.com/support/kb/articles/Q279/5/35.ASP
2. 可以得到IHTMLScriptElement的时候,已经弹出来了,删得太晚了
假如是按网页某一键才弹出的话是可以这样做,但是我的例子里写明的是立即弹出。
得到IHTMLScriptElement的时候,已经弹出来了,删得太晚了
另外,js报错提示如何禁止?
The
method is to override the javascript functions with stubs:function alert() {}
function prompt() {}
function confirm() {}The place to override these function is NavigateComplete2.
http://support.microsoft.com/support/kb/articles/Q279/5/35.ASP