If you mean just to remove html with body - that wont work... Already tried it.
On May 30, 4:50 pm, waseem sabjee <waseemsab...@gmail.com> wrote: > $('a.goToTop').click(function( > > > > > ) { > > $('body').animate({scrollTop : 0},'slow'); > > }); > On Sat, May 30, 2009 at 4:29 PM, GaVrA <ga...@crtaci.info> wrote: > > > Hi! > > > I am using this code: > > > $('a.goToTop').click(function() { > > $('html').animate({scrollTop : 0},'slow'); > > }); > > > And it works like it should. Problem is that sometimes it just bugs > > out for short period of time, like when you click anchor and it > > scroll's to top, if you then try to use scroll on mouse to scroll down > > it just keep returning you to top... :( > > > And after that short period of time it stop's doing that. > > > Any idea how to fix this? Something like when it reach top to stop > > working or something like that.