Answer the question
In order to leave comments, you need to log in
How, after closing the popup, it did not open when the page was reloaded?
When you enter the site, a popup opens.
How to make a popup open when you first enter the site. After clicking on the confirm button, the popup closed and did not open again when the page was reloaded?
here is the code
https://jsbin.com/lupekipeko/1/edit?html,js,output
Answer the question
In order to leave comments, you need to log in
What kind of cookies are here, where?
Mixed localStorage and sessionStorage.
Store everything in localStorage.
Well, I will write that a bunch of unnecessary variables that are not used.
sessionStorage.setItem('is_reloaded', 'no');
if(sessionStorage.getItem('is_reloaded') == 'no') { ... }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question