title: How To Call A Javascript Function On Page Load
body: <p>I have this little snippet of code in script tags, along with some functions:</p>
  
  <pre><code>window.onload = function()
      {
          if (window.location.hash === 'open')
          {
              $("#signinform").css("display", "block");
              $(".blackout").css("display", "block");
          }
      }
  </code></pre>
  
  <p>It's not working and I'm pretty sure its just because of a syntax error. However, I can't find it. The function is intended to be called when the page is loaded. Can you guys find the problem?</p>