Shayvard Shayvard -4 years ago 100
Javascript Question

How to not show the popup again when user revisit my site?

I create auto popup in my website, but i have not show the auto popup again when user revisit my site?

My framwork is:

Laravel 5.2


<div id="popup_this">
<span class="button b-close">
<h3>A nice ad goes here!</h3>
<p>Nulla at nunc posuere, dictum sem sed, tristique mi.</p>

jQuery bPopup plugin:

<script src="/path/to/jquery.bpopup.min.js"></script>


$( document ).ready(function() {

Answer Source

I would recommend using JS Cookie to set the cookie once the user has seen the pop-up.

Also, you dont need a plugin to perform the pop-up. Just use Jquery and add a class then style everything in css.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download