Anchors in layer problem

Discussion in 'JavaScript' started by rlwillis, Aug 20, 2007.

  1. #1
    I am using anchors in a nested layer, (not an iframe) The anchors are working in the layer but the whole page moves as well if the browser window is to small. I only want the layer to move to the anchor. How do I stop an anchor link (#) from making the whole page jump to the top?

    Thanks!

     
    rlwillis, Aug 20, 2007 IP
  2. mjamesb

    mjamesb Member

    Messages:
    88
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    48
    #2
    That is the default behavior of an anchor. You would have to write JS code to move the layer on the click event of the link.
     
    mjamesb, Aug 20, 2007 IP