title: Load Javascript on page load
body: <p>How can I load this javascript modal on page load? It's from the plugin "sweet alert". I'm really bad with javascript. Any advice will surely help!</p>
  
  <pre><code>&lt;script&gt;
  $(function () {
  
      $('.demo1').click(function(){
          swal({
              title: "Welcome in Alerts",
              text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
          });
      });
  
  });
  </code></pre>
  
  <p></p>