title: Onload event on <form> tag
body: <p>I want a JavaScript function to execute when the page loads.</p>
  
  <p>I added an <code>onload</code> attribute to my <code>&lt;form&gt;</code> tag, but the <code>alert</code> is not executed.</p>
  
  <p>What am I doing wrong?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form name=myfm method=post action=quiz.php onload = alert('hello')&gt;
  </code></pre>