title: Set initial scrollbar position
body: <p>I am trying to set the initial position of a scrollbar in a div so that a particular element is displayed at the top.</p>
  
  <p>I tried the following but it does not set the scrollbar to the correct position.</p>
  
  <p><code>scrollingDiv.scrollTop = element.offsetTop;</code></p>
  
  <p>Suggestions are appreciated.</p>