D
Desmond
Can someone tel me how I put a link at the bottom of a page to send it
to the top. Is this Javascript?
Desmond.
to the top. Is this Javascript?
Desmond.
Desmond said:Can someone tel me how I put a link at the bottom of a page to send it
to the top. Is this Javascript?
Desmond.
Can someone tel me how I put a link at the bottom of a page to send it
to the top. Is this Javascript?
Desmond.
A frequently used method is to put the following at the very top of
your HTML files (right after the <body> tag):
<a name="top"></a>
A frequently used method is to put the following at the very top of
your HTML files (right after the <body> tag):
<a name="top"></a>
And this near the bottom of the page to go to the top:
<a href="#top">Go to the top of the page</a>
JavaScript way-
window.scroll(0,0)
Mozilla Link-http://developer.mozilla.org/en/docs/DOM:window.scroll
MSDN link-http://msdn.microsoft.com/workshop/author/dhtml/reference/
methods/scroll.asp
HTML-
...
<body ..>
<a name="top">Hello WelCome</a>
....
<a href="#top">Go to top ??</a>
Blank anchors are not valid.
Can someone tel me how I put a link at the bottom of a page to send it
to the top. Is this Javascript?
Scripsit (e-mail address removed):
They are. Try learning HTML before starting to besserwisser on it in public.
Scripsit Desmond:
No, it is foolish (in almost all cases, and surely if you had to ask).
Technically, it would at the simplest be the following (pure HTML):
<a href="#">Start of the current page</a>
but the foolishness results from the fact that every browser has a
builtin function for moving to the start of the current page, such as
the Home key. And you surely did not intend even to hide the useless
link in a print stylesheet, so all those links would appear on paper
too.
More info: http://www.cs.tut.fi/~jkorpela/www/totop.html
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.