Skip to content

Instantly share code, notes, and snippets.

@camt
Created January 31, 2012 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camt/1707729 to your computer and use it in GitHub Desktop.
Save camt/1707729 to your computer and use it in GitHub Desktop.
A simple little trick for confirming with a user before they undertake an action on your web page. When the user clicks the link, they will hit a pop up box, displaying the confirmation message and two buttons. If they click yes the link is followed and t
<a href="irrevocable-action.php?doitnow=yes" onclick="return confirm('Are you really, really, really sure you want to do this?')">Do It!!</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment