Is there a way to make my twitter bootstrap lightbox automatically trigger when the HTML page loads? Currently, I have this script in my 'main.js' file:
function lightbox(){
$('#myLightbox').lightbox();
};
I heard that I can use a window.pulse command for this. However, my knowledge of jQuery is still basic.
Below is the HTML markup for the lightbox:
<div id="myLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="path/to/picture.jpg">
<div class="lightbox-caption"><p>The lightbox content goes here.</p></div>
</div>
</div>