check if a website is opened in another window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dolittle
    New Member
    • Sep 2007
    • 54

    check if a website is opened in another window

    Hi,

    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?

    Thanks
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    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.

    Comment

    Working...