Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> HTML >> Snippet

Link to top of page


<!-- it's often convenient to have a link that will take the user to the top of the current page -->

<!-- put this at the top of the page -->
< a name = "top" >

<!-- and either of these wherever you want a link to the top of the page (first an image version, then a text version -->
< a href = "#top" >< img width = 20 height = 20   align =top border = 0 src = "../images/4up.gif" ></ a >
< a href = "#top" >< b > Return to top of document </ b ></ a >

<!-- note:  if there is no name tag for 'top', the browser will jump to the top of the current page by default -->