title: alert called by onload event not running?
body: <p>I'm creating a chrome extension, but I'm struggling with the Onload event. I'm not sure what's wrong with my code. It works when I run it from this code snippet, but not in my text editor. I've tried disabling Jslint but it still won't show the alert. The problem could be in running the function, calling the alert, or calling the onLoad event, but I'm not sure. I'm testing it using a chrome-based preview tool in the brackets text editor. Any idea what's going on and why?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> function showAlert() {
      alert ("you are an idiot");
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="justanotherfile.js"&gt;&lt;/script&gt;
  &lt;body onload="showAlert()"&gt;&lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>