Using JS To Do A Only Once Option
I am trying to write some JS code that let users access a page only once and only once.
- User comes to a page and then click a link to a pop-up
- Pop-up has some information, then users close it
- If users tries to click the link to the pop-up again
- A message comes up that say "Sorry you've already accessed this once"
I'm think I need to set a cookie on the users computer but I just can't get the code.
*An example of 'mission critical' would be where, if the user took control of the situation, they could do something that would harm you. Like if sales or information that must remain private are involved, etc.