title: focus() to input without scrolling
body: <p>I have a search input text which I'd like to apply a <code>focus()</code> when loading the page, the problem is that the <code>focus</code> function automatically does a scroll to this field. Any solution to disable this scroll?</p>
  
  <pre><code>&lt;input id="search_terms" type="text" /&gt;
  &lt;script&gt;
      document.getelementbyId('search-terms').focus();
  &lt;/script&gt;
  </code></pre>