I'm trying to determine if a window is killed by a pop-up, i found out that alerts don't display with pop-up blockers
this is my not working attempt below... and suggestions?
poptest.htm
<script>
window.opener.test.testBool.value = "true"
self.close
</script>
main.htm
<script>
function wait(){
//wait a sec
checkWin2()
}
function checkWin2(){
testVal = document.test.testBool.value
if (testVal == "true"){
document.write ("No blocker")
else{
document.write ("Blocker")
}
}
function checkWin(){
popWin = window.open
("poptest.htm", "testWin","height=20,width=20")
setTimeout("wait()",100)
}
<body onLoad="checkWin()">
<form name="test">
<input name="testBool" value=http://www.webdeveloper.com/forum/archive/index.php/"false">
</form>
this is my not working attempt below... and suggestions?
poptest.htm
<script>
window.opener.test.testBool.value = "true"
self.close
</script>
main.htm
<script>
function wait(){
//wait a sec
checkWin2()
}
function checkWin2(){
testVal = document.test.testBool.value
if (testVal == "true"){
document.write ("No blocker")
else{
document.write ("Blocker")
}
}
function checkWin(){
popWin = window.open
("poptest.htm", "testWin","height=20,width=20")
setTimeout("wait()",100)
}
<body onLoad="checkWin()">
<form name="test">
<input name="testBool" value=http://www.webdeveloper.com/forum/archive/index.php/"false">
</form>