www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need to focus already opened window

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    Need to focus already opened window

    I have more links. If I click a link from home page, it should open in a new tab. If i click another link from home page, it should open in already opened tab and should be focussed.

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Use the same variable name for the new tab/window.
    Code:
    var newWin = window.open('document.html',WindowName,'{put settings here}');
    newWin.focus();
    |||||
    o . Q
    ___ "You live and you learn; or you don't live long." - Lazarus Long

    ^_^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles