zooming into <a name=""

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason Davis

    zooming into <a name=""

    Is it possible to zoom into a <a name=""></a> section using javascript?
    I mean the same affect as reloading the page with the # method.

    Thanks!
  • Martin Honnen

    #2
    Re: zooming into &lt;a name=&quot;&quo t;



    Jason Davis wrote:[color=blue]
    > Is it possible to zoom into a <a name=""></a> section using javascript?
    > I mean the same affect as reloading the page with the # method.
    >
    >[/color]

    The name should not be empty. You would need
    <a name="anchorNam e">...</a>
    then you can scroll to the anchor with
    location.hash = 'anchorName'



    --

    Martin Honnen


    Comment

    • Evertjan.

      #3
      Re: zooming into &lt;a name=&quot;&quo t;

      Martin Honnen wrote on 08 jul 2003 in comp.lang.javas cript:
      [color=blue]
      >
      >
      > Jason Davis wrote:[color=green]
      >> Is it possible to zoom into a <a name=""></a> section using javascript?
      >> I mean the same affect as reloading the page with the # method.
      >>
      >>[/color]
      >
      > The name should not be empty. You would need
      > <a name="anchorNam e">...</a>
      > then you can scroll to the anchor with
      > location.hash = 'anchorName'[/color]

      Isn't that reloading too ?


      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      Working...