使用javascript禁用弹出窗口阻止程序 [英] disabling the popup blocker using javascript

查看:76
本文介绍了使用javascript禁用弹出窗口阻止程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我的应用程序中有弹出窗口...
我想禁用弹出窗口阻止程序,并通过使用安装在window.open()中的window.showmodalDialog()来实现.

当我在IE中运行此窗口时popupblocker不会阻止弹出窗口,但是当我在Firefox中运行它时popupblocker会阻止窗口.....
有什么方法可以在两个浏览器中禁用弹出窗口阻止程序吗?.

谢谢....

Hi in my application i have popup windows...
i wanted to disable the popup blocker and i done it by using window.showmodalDialog() insted of window.open()....

when i run this in IE popup blocker wont blocks the popup window but when i run it in Firefox popupblocker blocks the window.....
is there any way to disable the popup blocker in both the Browsers..?

Thank you....

推荐答案

尝试一下
< pre>< a href ="popup.html''onclick =" window.open(this.href); return false;> link</a></pre>

希望这会有所帮助:)
try this
<pre><a href=''popup.html'' onclick="window.open(this.href);return false;>link</a></pre>

Hope this will help up :)


这篇关于使用javascript禁用弹出窗口阻止程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆