I've got this script to have a pop-up appear 5 seconds into the page. However, how can I stop it popping up everytime a user goes on to that page as it gets annoying.
jQuery(function($) {
// Load dialog on page load
setTimeout(function() {
$('#basic-modal-content').modal({
position: ["22%"]
});
// Load dialog on click
$('.salesSlider .basic').click(function(e) {
var content = '#' + this.id + '-content';
$(content).modal();
return false;
});
}, 5000);
});
Could someone please point me to the right direction.