Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-02-2006, 11:46 AM   PM User | #1
ken_shoti
Regular Coder

 
Join Date: Nov 2005
Posts: 230
Thanks: 1
Thanked 0 Times in 0 Posts
ken_shoti is an unknown quantity at this point
Detecting similar opened window

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)!
ken_shoti is offline   Reply With Quote
Old 05-02-2006, 11:52 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,455
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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).
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 05-06-2006, 11:54 AM   PM User | #3
ken_shoti
Regular Coder

 
Join Date: Nov 2005
Posts: 230
Thanks: 1
Thanked 0 Times in 0 Posts
ken_shoti is an unknown quantity at this point
No, i mean someone opened that same file again manually.
ken_shoti is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:11 PM.


Advertisement
Log in to turn off these ads.