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

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.
Who is Participating?
HonorGodConnect With a Mentor Software EngineerCommented:
Well here is some sample code that tests if a cookie exists, and if not creates one.
Samko1Author Commented:
Thanks HonorGod!

HonorGodSoftware EngineerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.