Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] return to top - through JavaScript


  • From: javascript@xxxxxxxxxx (Peter-Paul Koch)
  • Subject: [Javascript] return to top - through JavaScript
  • Date: Sat, 23 Mar 2002 14:05:52 +0000

>Is there a way to force a page to the top through JavaScript?  Trying to 
>provide a "return to top" link in a miva shopping cart.  The anchor tag 
>#top does not work (information after domain is stripped).  I tried a 
>JavaScript file using the referrer tag, but that also had problems with 
>information that was lost through a form post.  Just wondering if you can 
>force "self" to the top?

self.scrollTo(0,0);

ppk


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com