title: How to make JavaScript execute after page load?
body: <p>I'm executing an external script, using a <code>&lt;script&gt;</code> inside <code>&lt;head&gt;</code>.</p>
  
  <p>Now since the script executes <strong>before</strong> the page has loaded, I can't access the <code>&lt;body&gt;</code>, among other things. I'd like to execute some JavaScript after the document has been "loaded" (HTML fully downloaded and in-RAM). Are there any events that I can hook onto when my script executes, that will get triggered on page load?</p>