Window.scrollto Is Not Working In Internet Explorer 11
I want the scrollbar to be positioned on top by default as soon as I launch the page.But the below code works fine in chrome but not in IE11. If I try to debug the script, the scro
Solution 1:
Though this is a very old question, but updating here for someone looking for a solution.
Try using:
element.scrollTop = 0;
This should work on all browsers.
Solution 2:
Try using
$('body,html').scroll().scrollTop(0);
or
$('body,html').animate({scrollTop:0});
Post a Comment for "Window.scrollto Is Not Working In Internet Explorer 11"