Scroll to top not working for safari
<p>I am calling this javascript on page load</p>

<blockquote>
  <p>document.body.scrollTop = document.documentElement.scrollTop = 0;</p>
</blockquote>

<p>I want html page starts from top when loaded, above javascript working fine for chrome, safari(macbook) but not working for safari on iphone,
can anybody suggest workaround in javascript only.</p>