Posted by Desmond on 03/19/07 18:04
On 19 Mar, 17:36, scripts.cont...@gmail.com wrote:
> On Mar 19, 11:22 am, "Desmond" <otuat...@aol.com> wrote:
>
> > 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.
>
> 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>
Java script has to be linked to a button or image right?
This would not work on a text line <a></a>
Desmond.
[Back to original message]
|