tags:

views:

50

answers:

1

i am referencing the code from snipplr

$('html, body').animate({scrollTop:0}, 'slow');

i found out actually i need to use $('html'), $('body') does not work, $('html, body') seems redundant?

A: 

According to this blog post (update 4) it's because html works for IE in standards mode and body works in quirks mode.

joeynelson