Is there a way to get a Dialog to show when a page first loads? I would like to ask the user a question when he/she first loads the page. I know how to use a button to show a dialog. i guess i could have the button that is hidden and then use jquery to click it onload but is there a better way?
<div data-role="dialog"> <div data-role="header" data-theme="d"> <h1>Dialog</h1> </div> <div data-role="content" data-theme="c"> <p>This is a regular page, styled as a dialog. To create a dialog, just link to a normal page and include a transition and <code>data-rel="dialog"</code> attribute.</p> </div> </div>