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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

back to top

Status
Not open for further replies.

knuckle05

Programmer
Joined
Dec 17, 2001
Messages
247
Location
CA
Hi All,

How do you make a hyperlink that makes a page scroll back to the top of the page???
 
You put an anchor at the top of the page (before your heading, for example), e.g.

Code:
<a name=&quot;top&quot;>

Then, where you want the <b>Back to top</b> link, you put a link to the anchor, e.g.

Code:
<a href=&quot;#top&quot;>Back to top</a>

 
put this at the top of your code:
<a name=&quot;top&quot;>


but this for your link to the top:

<a href=&quot;#top&quot;>Top</a>

[conehead]
 
ahhhhhh....i see
thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top