How do I invoke a SimpleModal OSX dialog on page load?
Posted
by Priyank Sharma
on Stack Overflow
See other posts from Stack Overflow
or by Priyank Sharma
Published on 2009-10-23T06:43:47Z
Indexed on
2010/05/01
20:47 UTC
Read the original article
Hit count: 344
jQuery
|simplemodal
I was wondering if there is a way to invoke the SimpleModal OSX dialog box on page load? I tried http://stackoverflow.com/questions/522864/open-jquery-modal-dialog-on-page-load but wasn't able to make it happen.
Currently, the dialog is invoked on clicking a button / link. I would like to invoke it on page load.
Please help. :)
Thanks!
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.simplemodal.js'></script>
<script type='text/javascript' src='js/osx.js'></script>
<input type='button' name='osx' value='Demo' class='osx demo'/> or <a href='#' class='osx'>Demo</a>
<div id="osx-modal-content">
<div id="osx-modal-data">
<h2>Hello! I'm SimpleModal!</h2>
<p><button class="simplemodal-close">Close</button> <span>(or press ESC or click the overlay)</span></p>
</div>
</div>
© Stack Overflow or respective owner