HTML code for GoTo to Top of Page

  • Thread starter Thread starter Guest
  • Start date Start date
Create your link, then for the value of the hyperlink enter:

#top

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Create a Bookmark.

1. Type TOP and the top of the page
Highlight the word and choose Insert, Bookmark. Call it Top
2. Go down your page where you want the link (ex: Return to Top)
3. Highlight that link and choose Insert, Hyperlink. Pick the page you're
open and click Bookmark.
4. Choose the bookmark you created.

That's it.
 
You don't need to create a actual bookmark

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Assuming you want to go to the very top. many sites that use go to top are
actually taking you to a point somewhere under the header but at the top of
the content. In that case you'd need a bookmark.


Trevor L. said:
Thomas A. Rowe said:
You don't need to create a actual bookmark


Because the top of the page is the default
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
Actually "Top" is not a default

You can name it anything that is not a real bookmark in the page
- the default is the top of the page when the bookmark is not found in a page

So a link at the end of the page to "Bottom"
- will still take you to the top of the page
(if that bookmark name is not found in the page)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| | > You don't need to create a actual bookmark
| >
|
|
| Because the top of the page is the default
| --
| Cheers,
| Trevor L.
| [ Microsoft MVP - FrontPage ]
| MVPS Website: http://trevorl.mvps.org/
| ----------------------------------------
|
 
In IE6, FF1.0, NS7.0 if you set the hyperlink to either of the following, without first creating an
actual bookmark you will see the following happen:

#top = it will take you to the top of the page
(<a href="#top">Top of Page</a>)

#bottom = it will take you to the bottom of the page
(<a href="#bottom">Bottom of Page</a>)

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Yes, but it is dangerous to use because it is not in any
recommendations, W3C or other.
That means that it works in some Browsers today but may not do so in
others or in future versions.
I would test in Opera, IE7 and FF2.
A named anchor always works or an ID (newer browsers only).

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
Back
Top