弹出检测 [英] Popup detection
问题描述
大家好,
有没有办法,使用Javascript,你可以检测弹出窗口是否已成功打开
?
如果有人正在运行弹出式阻止软件,我很想知道。
干杯,
@ ndyB
Hi there all,
Is there a way, using Javascript, that you can detect if a popup window has
opened successfully?
I''m tring to work out if someone is running popup blocking software or not.
Cheers,
@ndyB
推荐答案
2004年5月6日星期四10:10:11 +0100,Agony.COM< in ** @ agony.com>写道:
On Thu, 6 May 2004 10:10:11 +0100, Agony.COM <in**@agony.com> wrote:
有没有办法,使用Javascript,你可以检测弹出窗口是否已成功打开?
Is there a way, using Javascript, that you can detect if a popup window
has opened successfully?
查看Google网上论坛存档以获取部分解决方案。这个话题不止一次讨论过,但我相信基本的答案是,不。至少
没有一致的结果。
迈克
-
Michael Winter
M.******@blueyonder.co.inva 盖子(更换" .invalid" with.ukto to reply)
Check the Google groups archive for partial solutions. This topic has been
discussed more than once, but I believe the basic answer is, no. At least
not with consistent results.
Mike
--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
在文章< 40 **************** ******@mercury.nildram.net> ;,
in**@agony.com 启发我们... 。
In article <40**********************@mercury.nildram.net>,
in**@agony.com enlightened us with...
大家好,
有没有办法,使用Javascript,你可以检测弹出窗口是否已成功打开?
Hi there all,
Is there a way, using Javascript, that you can detect if a popup window has
opened successfully?
有点候选,但不是真的。
IOW,并非所有浏览器都可靠。
-
-
~kaeli~
按任意键继续或任何其他键退出
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
Kinda sorta, but not really.
IOW, not reliably in all browsers.
--
--
~kaeli~
Press any key to continue or any other key to quit
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
原始页面有以下功能:
< script language =" JavaScript">
var child = window.open(" blah.html"," nam"," args")
函数imHere(){
//如果调用此函数则弹出窗口打开
警报(YAY!对我来说没有弹出窗口拦截器,我可以自由地惹恼世界!")
}
< / script>
子页面(blah.html或其他用于验证的内容
< body onLoad =" window.opener.imHere()">
" kaeli" ti ****** @ NOSPAM.comcast.net>在留言中写道
news:MP ************* *********** @ nntp.lucent.com ...
Original page has the following function:
<script language="JavaScript">
var child=window.open("blah.html","nam","args")
function imHere(){
//if this function is called then the popup is opened
alert("YAY! no popup blocker for me, I''m free to annoy the world!")
}
</script>
child page (blah.html or whatever uses this for verification
<body onLoad="window.opener.imHere()">
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
文章< 40 ***************** *****@mercury.nildram.net>,
in**@agony.com 启发了我们......
In article <40**********************@mercury.nildram.net>,
in**@agony.com enlightened us with...
大家好,
有没有办法,使用Javascript,你可以检测弹出窗口
是否已成功打开?
Hi there all,
Is there a way, using Javascript, that you can detect if a popup window has opened successfully?
有点候选,但不是真的。
IOW,在所有浏览器中都不可靠。
-
-
~kaeli~
任意键继续或任何其他键退出
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
这篇关于弹出检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!