dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Keeping pages on top focus

  1. #1
    Join Date
    Jan 2005
    Posts
    313

    Keeping pages on top focus

    Greetings to all,

    My page has an image map divided into sections, clicking on any section opens a new html page all with the same name 'popup',
    (window.open('1C.html', 'popup'),
    with that section image enlarged.

    So only 2 windows will be open maximum.

    Since each clicked page loads into the same page name, how do I keep subsequent new clicked image page loads focus on top?

    A new window automatically gets focus, but when a new page loads into the same window, it does not...
    Last edited by ranosb; 06-04-2005 at 11:08 PM.

  2. #2
    Join Date
    May 2005
    Location
    US of A, Ohio
    Posts
    342
    well with Fx use in the window.open the dialog=1 Not to sure In IE perhaps zlock the back page???

  3. #3
    Join Date
    Jan 2005
    Posts
    313
    Okay, if that cant be done then how about I close the previous window(if open) and open a new window.
    Just have to close the window by name...

  4. #4
    Join Date
    May 2005
    Location
    US of A, Ohio
    Posts
    342
    only script Opened windows can be closed

    windowsnamehere.close();
    and it IS possible or here is an alternate that will lock the back window.
    in the body tag of the opener onFocus="changeView();"

    in script

    function changeView()
    {
    if(windownamehere.document)
    windownamehere.focus();
    }
    Last edited by blah1985; 06-07-2005 at 12:56 AM.

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