title: Chrome extension onload behaviour
body: <p>I am developing a settings page for a chrome extension. In my options.js file I want to initalize the settings with some default values and I use <code>window.onload = initSettings();</code> for that. In my <code>initSettings()</code> function I am trying to access an input from the DOM via <code>document.getElementById("someId")</code>. But this call always returns <code>null</code>. I thought that the <code>window.onload</code> event is fired after all of the DOM elements are in place.</p>
  
  <p>What am I doing wrong?</p>