Tabbed browsing, programaticaly navigating to another open tab

Posted by jdr120 on Stack Overflow See other posts from Stack Overflow or by jdr120
Published on 2010-05-20T15:53:25Z Indexed on 2010/05/20 16:10 UTC
Read the original article Hit count: 251

Filed under:
|
|
|

Hello,

I'm in a discussion with my co-worker. We have a web application in a tabbed browsing environment, say with 2 tabs open. Tab2 has a link to tab1, when I click the link, it opens tab1 in a new tab. We want to detect if tab 1 is already open, if so then set focus to tab1 (and not open a new window).

He has gotten this working in a broswer window environment, but says it is not possible in a tabbed environment.

Is it possible to for javascript to determine if tab1 is already open and then just set focus to that tab?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about tabbed