title: onclick function is undefined
body: <p>I know this is probably something really dumb, but it really pisses me off for a good 15 minutes. What am I missing here?</p>
  
  <pre><code>&lt;input type="button" value="Go" onclick="showAlert()"&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>function showAlert() {
      alert('???');
  }
  </code></pre>
  
  <p><a href="https://jsfiddle.net/evmzwwwe/1/" rel="nofollow">Fiddle</a></p>