Sunday 24 April 2022

How to show popup only first visit of website

 <script>

                $(document).ready(function() {

                    var isshow = localStorage.getItem('isshow');

                    if (isshow== null) {

                        localStorage.setItem('isshow', 1);

                       // Show popup here

                        $('.popup').show();

                    }

                });

            </script>

No comments:

Post a Comment