Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6018619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:18:05+00:00 2026-05-23T03:18:05+00:00

I am using jQmodal plugin , to show pop up window, welcome to site.

  • 0

I am using jQmodal plugin , to show pop up window, welcome to site.

But the issue is every time page refresh window pop-up.

Here is my code http://jsbin.com/atoqe5/3/edit

I think it can be done using Cookies, but not much Idea how to use that. 🙁

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:18:06+00:00Added an answer on May 23, 2026 at 3:18 am

    You could set a cookie with JavaScript and set it to true when it’s opened for the first time.

    These are just helper functions for setting and getting cookie values, more info about setting and getting cookie values.

    function setCookie(name, value, daysToLive) {
        var expirationDate = new Date();
        expirationDate.setDate(expirationDate.getDate() + daysToLive);
        document.cookie = name + '=' + escape(value) + ((daysToLive == null) ? '' : '; expires=' + expirationDate.toUTCString());
    }
    
    function getCookie(name) {
        var cookies=document.cookie.split(';');
        for (var i = 0; i < cookies.length; i++) {
            if (cookies[i].substr(0, cookies[i].indexOf('=')).replace(/^\s+|\s+$/g, '') == name) {
                return unescape(cookies[i].substr(cookies[i].indexOf('=') + 1));
            }
        }
    }
    

    Prevent the modal from opening if the value is set:

    $(function() {
        if (!getCookie('modalOpened')) {
            // Put your code to open the model here...
    
            // Set value to true to prevent the modal from opening again 
            setCookie('modalOpened', true);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery Plugin jqModal . New to it, so i'm still learning
I am trying to implement a modal window using jqModal plug-in. I make an
Hi I am using jQm Window to load modal window. http://dev.iceburg.net/jquery/jqModal/#how i am trying
I'm using jqModal for an application I'm developing. It works great in IE8, but
I have a modal window using jqmodal. I need a button within that modal
Here's my scenario. I call jqModal using its ajax functionality that displays a form
I am using jqModal plugin which relies on jqDnR for drag and resize support.
I just started using jqModal as I need support for nested modals. I'm noticing
I want to create a simple form for adding new products using jqModal .
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.