title: How to pop up some contents before page load javascript
body: <p>I have a script that invoke pageLoad after all content is loaded.</p>
  
  <p>I need it to be on before page load</p>
  
  <p>my script is </p>
  
  <pre><code> function pageLoad()
  {
      $('#myModal1').modal('show');
  }
  
  window.onload = pageLoad;
  </code></pre>
  
  <p>Can anyone  do anything this script to get show on before load page?</p>
  
  <p>Thanks very much</p>