By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,129 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

check if a website is opened in another window

P: 54

Is it possible to use javascript to check if a website is opened in another tab or window?

I thought about setting a cookie that will expire in the end of the session.

The only problem is that if a user opens two browser windows A and B with the website opened at window A and then window A crashes, window B will still hold the cookie.

Any idea?

Jul 21 '08 #1
Share this Question
Share on Google+
1 Reply

P: 2,476
I think it is not possible.
you can check that whether it has been opened somewhere but in which window it has been opened, can't be tracked.
in same domain the cookie with same name overlapped.
Jul 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.