Today I have to make a scrollTop for a webpage, and I use jQuery for the most part of the javascript in the website.
So, the problem is, I do $(‘body’).scrollTop(0); and this work for Safari/Chrome, but only for it. So, I looking for a solution in the Internet, and it’s a pain to find one for all. But finally I found one, やった (yatta)!
What is it ? Simply $(« html,body »).animate({scrollTop: 0},0); and it’s work.
Grade A stuff. I’m unuqsetionalby in your debt.
Very nice, very nice … I had problems with IE7, IE8 with $(window).scrollTop()
Your solution is working perfectly with IE7, IE8, IE9, FF, Chrome, Opera, Safari.
GW!