Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
07-29-2009, 09:01 AM #1
pop up window with "don't show again" checkbox
I want to create a how to pop up with a checkbox that the user can tick to not show the pop up again so it may need to have a cookie applied to it.
Anybody know how?
07-29-2009, 09:57 AM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,548 Times in 2,526 Posts
Well, what you want is something like this in the pop-up
Don't show me these instructions again <input type = "checkbox" name = "chk1" id ="chk1" onclick = "makeCookie()">
Then if the checkbox is checked, set the cookie, and read it back in onload of the main page.
Remember that you need to provide some way of erasing the cookie as otherwise the user cannot change his mind and ask to see the instructions again.
But personally would prefer a simpler system which gives more control to the user:-
07-29-2009, 10:04 AM #3
Thanks will give it a go.
PS I like the Woody Allen Quote!