Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jump down the page

Status
Not open for further replies.

aaronjonmartin

Technical User
Jul 9, 2002
475
GB
Hi guys,

I have a html page I am making that will contain a lot of text, I have created three navigation buttons at the top of the page each of which I want to, when clicked, jump to a specific line on the page. I have seen this done before on FAQ pages where there is a list of contents at the top of the page and you click one of the links and it displays a specific section of the page. I dont really no how to start with this so any help would be appreciated. Thanks

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
You do this using normal hyperlinks

Create and anchor in your text where you would like to jump to:

Code:
<a name=&quot;middle&quot;></a>

and then in your navigation do:

Code:
<a href=&quot;#middle&quot;></a>

if the place you want to jump to is on another page then do this:

Code:
<a name=&quot;faq.html#middle&quot;></a>

MrBelfry
 
My apologies guys, after a quick scan of the forum I found the answer I was looking for. It involves using anchors. Sorry if I have wasted your time reading this post, I will ensure I view some posts before I post a problem in future.

Aaron

&quot;It's so much easier to suggest solutions when you don't know too much about the problem.&quot;
Malcolm Forbes (1919 - 1990)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top