title: Javascript Return False works in html, not head
body: <p><code>Return False</code> only seems to work inline, not in the document <code>&lt;Head&gt;</code>.</p>
  <p>This works:</p>
  <pre><code>&lt;html&gt;&lt;body&gt;&lt;form action=&quot;index.html&quot; method=&quot;post&quot;&gt;
  &lt;input type=&quot;submit&quot; onClick=&quot;alert('Hello'); return false;&quot;&gt;
  &lt;/form&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  <p>This does not work:</p>
  <pre><code>&lt;html&gt;&lt;head&gt;
  function myfunction(){
  alert(&quot;Hello&quot;);
  return false;
  }
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action=&quot;index.html&quot; method=&quot;post&quot;&gt;
  &lt;input type=&quot;submit&quot; onClick=&quot;myfunction();&quot;&gt;
  &lt;/form&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>