View Full Version : Detecting similar opened window
05-02-2006, 12:46 PM
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-03-2006, 12:52 AM
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, 12:54 PM
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.