Browswer Window moving when opening a new window

Discussion in 'Javascript' started by Allan, Aug 5, 2004.

  1. Allan

    Allan Guest

    Hi all,

    I have a very long page with a lot of text.

    Some of this content have links that open a new brower window with
    more details. However, the new window opens, the original window goes
    back to the top of the page which is annoying because then you have to
    scroll down again to be where you let of.

    Any ideas how to resolve that?

    Thanks in advance for your help

    A.S.
     
    Allan, Aug 5, 2004
    #1
    1. Advertising

  2. Allan

    Randy Webb Guest

    Allan wrote:

    > Hi all,
    >
    > I have a very long page with a lot of text.
    >
    > Some of this content have links that open a new brower window with
    > more details. However, the new window opens, the original window goes
    > back to the top of the page which is annoying because then you have to
    > scroll down again to be where you let of.
    >
    > Any ideas how to resolve that?


    Yes, return false from your onclick handler:

    <a href="page.html" onclick="functionName();return false">Your text</a>
     
    Randy Webb, Aug 6, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ScriptNFool
    Replies:
    2
    Views:
    361
    white sheng
    Apr 1, 2004
  2. POL8985
    Replies:
    1
    Views:
    588
    Kevin Spencer
    Jan 31, 2005
  3. Richard Smol
    Replies:
    6
    Views:
    716
    John C. Bollinger
    Dec 16, 2004
  4. Richard Smol
    Replies:
    1
    Views:
    406
    Andrew Thompson
    Dec 16, 2004
  5. linkswanted
    Replies:
    0
    Views:
    660
    linkswanted
    Jan 24, 2008
Loading...

Share This Page