title: Trigger onload, inline javascript event
body: <p>I've a pop-up that can be called trough a link. The problem is that i need to call it onload, an I can't find a way to do this.</p>
  
  <p>This is the code of the pop-up</p>
  
  <pre><code>   &lt;a href="https://sloways.leadpages.co/leadbox/14169a873f72a2%3A14f192411746dc/5636318331666432/"
      target="_blank"&gt;Click Here to Subscribe&lt;/a&gt;
      &lt;script data-leadbox="14169a873f72a2:14f192411746dc"
      data-url="https://sloways.leadpages.co/leadbox/14169a873f72a2%3A14f192411746dc/5636318331666432/"
      data-config="%7B%7D" type="text/javascript"
      src="https://sloways.leadpages.co/leadbox-1483020619.js"&gt;
      &lt;/script&gt; 
  </code></pre>
  
  <p>I've tried to trigger the "Click Here to Subcribe" in different ways, like the following, without success:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/7999806/jquery-how-to-trigger-click-event-on-href-element">Jquery how to trigger click event on href element</a></li>
  <li>jQuery(document).ready(function(){<br>
   jQuery("#add_redirect").trigger('click');
  });</li>
  <li>Window.location.href (this open the link but in another page, not as a pop-up)</li>
  </ol>
  
  <p><strong>UPDATE N.1</strong><br/>
  I've bypassed the problem loading the pop-up URL through the <code>&lt;object&gt;</code> tag.
  I've put the <code>&lt;object&gt;</code> inside a Bootstrap modal so it still works like some kind of pop-up. </p>