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 strongm 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
Dec 17, 2001
247
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top