How do I make the Pop-up appear just once per visitor?

Posted on 2009-02-18
Medium Priority
Last Modified: 2013-11-19
I have setup a dhtml (a DIV) pop-up on my site. I want it to appear just once to each visitor (unless s/he clears cookies). I know this can be done using cookies, but dont know anything about setting them up. Ideally, if you could provide me with a code snippet to achieve this, it will be a great help.
Question by:Samko1
  • 2
LVL 41

Accepted Solution

HonorGod earned 750 total points
ID: 23671385
Well here is some sample code that tests if a cookie exists, and if not creates one.

Author Comment

ID: 23858834
Thanks HonorGod!

LVL 41

Expert Comment

ID: 23891705
You are very welcome.  Thank you for the grade and points.  Sorry that you didn't feel it warranted a better grade.

Good luck & have a great day

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question