I am working with one jQuery library that allows to open modal windows by clicking a link. The point is that I want to open the window but without clicking any link. I know it's a little strange, but it is possible to call the modal without having the trigger link (where the reference to the modal library is)?
Update: What I have tested
<script type="text/javascript">
$(function() {
$('a[rel*=leanModal]').leanModal({ top : 100, closeButton: ".modal_close"});
});
</script>
...
<!-- a rel="leanModal" href="#modal" name="modal">Link</a -->
...
<script type="text/javascript">
$('#modal').click();
</script>
<div id="modal">
</div>
The reference to the modal div is in link, but I don't have that link and it won't be created.
Reference: leanModal.js