View Full Version : Detecting similar opened window
05-02-2006, 11:46 AM
What code should i put to alert me if my page got another similar window opened. (I actually tried session cookies, but i want other options)!
05-02-2006, 11:52 PM
When you open a window you can assign it to a variable:
myWin = window.open(...);
You can then test if myWin exists and if myWin.closed is false in order to determine that the window is still open (provided that you do it from the same page - once you leave the page then there is no link to the other window that can be tested from anywhere).
05-06-2006, 11:54 AM
No, i mean someone opened that same file again manually.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.