Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
Popup Display once in homepage

Hi i have a popup script for blogger but ,i dont want it again to be apperaed once again when returning to homepage when he seen it before like it should present only once for the user

  <b:if cond='data:blog.url == data:blog.homepageUrl'> 
  <div class='popup-overlay'>
  <div class='popup-container'>
    <div class='popup-close'>+</div>
    <b> <h2 class='popup-title'>Welcome to Free Community!</h2></b>
    <p class='popup-description'>
     Hi,
   Thank you for Visiting up for our Website. We appreciate your interest.
   We will do our best to Bring you More Fun Videos for GTA 5 ,Thank You!
    </p>
   

    </div>
    </div>
    <script>
    const popupOverlay = document.querySelector(&quot;.popup-overlay&quot;);
   const popupClose = document.querySelector(&quot;.popup-close&quot;);

   popupClose.addEventListener(&quot;click&quot;, () =&gt; {
   popupOverlay.style.display = &quot;none&quot;;
    });

   setTimeout(() =&gt; {
   popupOverlay.style.display = &quot;block&quot;;
   }, 3000);
   </script>
   </b:if>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use the localStorage to have the user's browser save a value that will tell you if the user has already visited your site.

To save the value do localStorage["key"] = "value".

Show the popup only if localStorage["key"] != "value".

The full logic would be:

if (localStorage["key"] != "value") {
  // show popup
  localStorage["key"] == "value";
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!