Home | All Questions | alt.html FAQ >

How do I create a link that takes the user to the top of the page?

Put this at the top of the page :-

<a name="top"> </a>

And then link to it like this :-

<a href="#top">Top</a>

<html>
<head>
	<title>Link to top demonstration</title>
</head>

<body>

<a name="top">Top of page</a>

...lots of useful content...

...lots of useful content...

<a href="#top">Up to Top</a>
</body>
</html>

Recommended Resources

Discussion

Related Questions