I am using this code:
$('#goto_introduction_divcontent').click(function(){
var targetOffset = $('#introduction_div').offset().top;
$('html, body').animate({scrollTop:targetOffset}, 'slow');
if ($.browser.msie){
document.documentElement.scrollTop = targetOffset;
}
});
But this not working in Internet Explorer. My jsFiddle is here.
This works for me in IE8+:
$('body, html').animate({ scrollTop: 0 }, 'slow');
Maybe your IF statement is throwing things off?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With