joshie76

msg:1492785 | 2:49 pm on Jan 21, 2002 (gmt 0) |
Provided you name your popup window: <script> windowname = window.open(blahblah) </script> Then you can reference that window from any other page by it's name, say: <script> windowname.close() </script>
|
kapow

msg:1492786 | 3:14 pm on Jan 21, 2002 (gmt 0) |
Thanks Joshie76 Thats just what I needed. What java script will say: If the window is already open then don't open it again ? So that I can link back to the page that opens the popup without opening it again (if you see what I mean).
|
joshie76

msg:1492787 | 3:25 pm on Jan 21, 2002 (gmt 0) |
<script> windowname = window.open() function test() { if (windowname && !windowname.closed) { alert('Window is still open'); } } </script> That should* tell you whether your window is still open or not... There's also some more useful info in this kind of thing in this forum: [webmasterworld.com...] *Handle this with a bit of care, some browsers vary in the way they handle the window objects - you'll need to do a bit of testing. Let us know if you run into any trouble. I only tested the above script in IE5.5 though you probably get the idea. Josh
|
|