SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Froot r gewd SubKamran's Avatar
    Join Date
    May 2002
    Location
    North Star State
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window.Focus() Popup...

    I have a page where it accesses the same popup a couple times. When I click 'Help' it opens the popup then goes to the section. But, if i go back to the other page, and click another link to the popup which goes to another section, it doesn't re-focus on the popup window.

    The sections are accessed by the '#SECTION' link...

    Like:

    Code:
    <a href="javascript:helppage('help.htm#Section','title');">Help</a>
    How can I focus on it when it goes to a new section when the popup is already open?
    "Sometimes little is more."
    Kamran A
    Web Dev/Designer
    Keyboard not found: Please Press F1 to Continue

  2. #2
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    popUpWindowName.focus()

    Assuming your helppage function looks a little like this...
    Code:
    function helppage() {
       helpwindow = window.open(...);
       helpwindow.focus();
    }


Bookmarks

Posting Permissions

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