poetsrevenge00
04-09-2003, 09:38 PM
is it possible to check to see if a window is already open... how would i do that... thanx in advance...
|
||||
window trouble...poetsrevenge00 04-09-2003, 09: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, 09:54 PM like this perhaps: <html> <head> <title>Check Popup</title> <script type="text/javascript" language="javascript"> <!--; 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="javascript: void checkPopup()">isOpen?</a> </body> </html> poetsrevenge00 04-09-2003, 10:00 PM gracias amigo! poetsrevenge00 04-10-2003, 12: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