Hide "<div>" Popup using Cookie

Asked

Viewed 27 times

1

I have a web site which displays a welcome video, I want to hide a div which is a Popup which I created which displays the video, I want to hide this div using cookie so that it does not appear again and does not interfere whenever the user enters. need help with logic and if possible some example code that might work.

<div id="popup_this" class="popup">
<!-- O video vai aqui -->
</div>

This is the code of the div which I do not want to show, all the logic behind the Popup works but display it every time the user enters will be annoying.

  • Search on localStorage

  • 2

    Thank you very much for your personal help

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.