window.scrollTo is not working in Internet Explorer 11
<p>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.</p>

<p>If I try to debug the script, the scrollbar is positioned on top.</p>

<pre><code>$(document).ready(function () {
  window.scrollTo(0,0);
 }
</code></pre>

<p>I tried different solution online such as</p>

<pre><code>$(window).scroll().scrollTop(0);
document.body.scrollTop(0);
</code></pre>

<p>But nothing worked in IE.Kindly help me</p>