...

View Full Version : window trouble...



poetsrevenge00
04-09-2003, 10:38 PM
is it possible to check to see if a window is already open... how would i do that... thanx in advance...

HairyTeeth
04-09-2003, 10:54 PM
like this perhaps:


<html>
<head>
<title>Check Popup</title>
<script type="text/jav&#97;script" language="jav&#97;script">
<!--;
var pop=null
function checkPopup(){
if(!pop || pop.closed){
alert("Popup closed");
pop=window.open('','','width=200,height=200');
}else{
alert("Popup is open");
pop.focus();
}
}
//-->
</script>
</head>
<body>
<a href="jav&#97;script: void checkPopup()">isOpen?</a>
</body>
</html>

poetsrevenge00
04-09-2003, 11:00 PM
gracias amigo!

poetsrevenge00
04-10-2003, 01:45 AM
ok... turns out still need need help... i have two functions... one to check if the window is open... if its closed, it opens it and if its open it just changes the properties... not sure whats wrong... ive attached the js file...

thanks,
scott



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum