Specifies whether the Web browser can display dialog boxes. Delphi syntax: property Silent: WordBool; Description Set Silent to true to prevent the Web browser control from displaying dialog boxes. 屏蔽比如“脚本错误”这类型的"弹出"窗口
to xjjrocker(了无痕)我主要想屏蔽的是广告窗口!就一个窗口打开又会自动弹出的新窗口 :)
要注意的是,OnNewWindow2有的时候不能完全捕捉到所有的新窗口打开,
winXP SP2环境下,可以用OnNewWindow3阻断弹出式广告的BHO
http://www.delphibbs.com/keylife/iblog_show.asp?xid=22746过滤IE的弹出式广告窗口、过滤自编IE内核浏览器的弹出窗口
http://www.csdn.net/develop/read_article.asp?id=10691抢先式弹出窗口杀手
http://www.csdn.net/develop/read_article.asp?id=16035
http://www.csdn.net/develop/read_article.asp?id=15535OnNewWindow3事件
http://blog.csdn.net/CathyEagle/archive/2004/09/06/95964.aspx
Delphi并没有做封装吧,如何使用呢?而且好像要求IE6 sp2呀还是感谢各位! :)
Delphi syntax:
property Silent: WordBool;
Description
Set Silent to true to prevent the Web browser control from displaying dialog boxes.
屏蔽比如“脚本错误”这类型的"弹出"窗口
而手工弹出时,有许多方式,如:链接、脚本、按钮、Flash都可以弹出新窗口的!
所以最好将自动弹出检测出来,进行屏蔽! 有没有具体的实现方法, 谢谢!!