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. Advertisements

  2. Allan

    Randy Webb Guest

    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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.