title: focus on page load (works if refreshed)
body: <p>How can I make my page focus automatically on the field</p>
  
  <pre><code>        &lt;script&gt;
      function focus(event) {
              document.getElementById('keywords').focus();
      }
  &lt;/script&gt;
  
  
  &lt;BODY onload="focus(event)"&gt;&lt;/body&gt;
  </code></pre>
  
  <p>appears to work but only if i refresh the page is there a way to make it focus automatically on the page load. </p>