I have a popup with fancybox that appear at load page.
I need to show the popup once a time, if the user change page and back on the page with popup doesn\'t reveal
Using the jQuery cookie plugin you suggested:
$(document).ready(function() {
if(typeof $.cookie('popupVideoPlayed') == 'undefined') {
$.cookie('popupVideoPlayed', 'true'); // set a session cookie so it won't play again
$('#yt').trigger('click');
}
});
Remember to delete the inline body onload event handler.