Popup on page load in JQM
Dear Gurus! I'm opening a popup on page load. Below is an example. (Thank you Bagman!) Unfortunately, when I return to the page, the popup reappears. How can I achieve that only appear the first time?
Thak you and sorry for my English.
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
Page Content
<div data-role="popup" id="myPopup" data-history="false">
<p>This is a completely basic popup, no options set.<p>
</div>
<script type="text/javascript" language="JavaScript">
$(":jqmData(role='page'):last").on("pageshow", function(event) {
$("#myPopup", $(this)).popup("open");
});
</script>
</div>
</div>