delphi禁止webbrowser弹出窗口或者脚本错误


本文整理自网络,侵删。

 delphi禁止webbrowser弹出窗口或者脚本错误

webbrowser1.silent:=true; //屏蔽脚本错误

procedure TForm1.WebBrowser1NewWindow2(Sender: TObject; var ppDisp: IDispatch; var Cancel: WordBool);
begin
Cancel:=True; //禁止弹出窗口
end;

相关阅读 >>

Delphi 批量把图片保存到access数据库

Delphi android device information

Delphi android使用idhttp.get抓取https(ssl)文件

Delphi 10.3.1 android沉浸式透明状态栏

Delphi idhashmessagedigest 获取文件md5

Delphi中判断操作系统是否是windows7

Delphi下ado的多线程编程

Delphi tlog 日志

Delphi 读取内存

Delphi idhttp访问http与https不同点

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...