There is a certain event, let's say a pop-up window, how to make it pop up for each user 1 time per day?

I have never worked with a cookie, I want to do something like the following:

if(event.pageY < 2 && event.pageX > 1300){ if(cookieSet == null){ var cookieSet = $.cookie("popupcookie", { expires: 1 }); $('#popup').show(); $('#pDis').addClass('parentDisable'); }else{ return; // esli estj cookie } } 
  • And what exactly does not work? - Vladimir Gamalyan
  • Completed the question - Alexander Reizan
  • if(cookieSet == null){ is this how you check for cookies? Read the documentation on how to get it. Vasily Barbashev will never have a cookieSet on your page -

0