Forum Moderators: mack

Message Too Old, No Replies

Jump to another section of the same webpage

How do I jump to another textsection of the same webpage?

         

Franky

11:34 pm on Aug 27, 2002 (gmt 0)

10+ Year Member



I can't figure out how I create links on the top of a single page that jump to different (text)sections/parts within the same page (and back from that section to the top of the page).

Does anyone know how I create such links forth and back within one single page?

Knowles

11:41 pm on Aug 27, 2002 (gmt 0)

10+ Year Member



Its been awhile since I have used this but I do beleive this will work
<a href="#text"> ..... clicking will take you to

<a name="text"> .... then to return back to the top

<a href="#top"> .... I do beleive. like I said its been awhile.

fathom

11:44 pm on Aug 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



same as above.

Franky

9:47 am on Aug 28, 2002 (gmt 0)

10+ Year Member



Thanks very much Knowles and Fathom!

It works perfectly!

Birdman

10:36 am on Aug 28, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or <div id="anyname"></div>content you want to jump to.

And then as above...

<a href="#anyname">jump to anyname</a>

Oh yea, welcome to Webmaster World "Franky"!

rewboss

5:37 pm on Aug 28, 2002 (gmt 0)

10+ Year Member



You can also jump to a specific place on a different page. For example:

<a href="foobar.html#sect1">Click here!</a>

Knowles

5:45 pm on Aug 28, 2002 (gmt 0)

10+ Year Member



Really where are my mannors Welcome to WebmasterWorld Franky.

Birdman good point on the div, does it have to be ID or could it be Class as well? I am guessing ID since ID can only be used once on a page. Am I right to assume that?

Franky

7:24 pm on Aug 28, 2002 (gmt 0)

10+ Year Member



Birdman and rewboss, thanks for sharing your knowledge!

Birdman and Knowless, thank you for the warm welcome to WebmasterWorld!