Web Analytics Made Easy -
StatCounter hyperlinks - CodingForum

Announcement

Collapse
No announcement yet.

hyperlinks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • hyperlinks

    hey guys,

    How do i set a up hyperlinks in javascript, not just to a page but to a specific point within a page.

    Thanks folks..

    G

  • #2
    Hi

    the safer way is still to put an anchor just at the point you want to intercept, by html:

    <body bla bla...>

    here is my point <a name="foo"> bla bla</a> that's an anchor: a with a name, no source property

    then the javaScript instruction might be:

    location="#foo";

    note the #

    ciao
    Alberto http://www.unitedscripters.com/

    Comment

    Working...
    X