如何显示弹出窗口已被Safari阻止? [英] How can I indicate that a popup has been blocked by Safari?

查看:218
本文介绍了如何显示弹出窗口已被Safari阻止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPad的Safari浏览器中,如果禁用了弹出窗口,是否有任何方法可以使该栏位于顶部.如IE中显示"...试图打开弹出窗口的网站."

In Safari for iPad, if the popups are disabled, is there any way to get the bar at the top..like in IE which says "...website trying to open popup.."

我的意思是用户至少可以知道有一些弹出窗口正在打开..

I mean the user can at least come to know there is some popup being opened..

否则,如果弹出窗口设置被阻止,则当用户单击具有该弹出窗口的链接时,什么也不会发生.

Otherwise if the popup setting is blocked, nothing happens when the user clicks on a link which has that popup.

推荐答案

我知道在Mobile Safari中打开新窗口的唯一方法是使用target="_blank"(我猜是target="_new")属性.

The only way that I know of to get a new window to open up in Mobile Safari is to use the target="_blank" (and I guess target="_new") attribute.

<a href="my_popup_page.html" target="_blank">Open 'popup'</a>

这篇关于如何显示弹出窗口已被Safari阻止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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