title: Load Bootstrap modal automatically when page loads
body: <p>How to load Bootstrap model automatically when page loads? </p>
  
  <p>I tried adding the following to my index file:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(window).load(function () {
          $('#myModal').modal('show');
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But its not working.</p>