title: div.scrollTop not working in code, works in console
body: <p>I have a div with a set height and <code>overflow : auto</code>. When I use in my code <code>div.scrollTop = 0;</code> it doesn't work, but if I do the same in the console, it works.</p>
  
  <pre><code>//here, div is scrolled half way
  div.innerHTML = "";
  div.scrollTop = 0;  //not working
  div.appendChild(new_long_content); 
  //here, div is still scrolled
  </code></pre>