Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// All links with class delete
// This should work--if cancel is pressed, it returns false, canceling
// the click. I haven't tested it out myself, though.
return confirm("Are you sure you want to delete this item?");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment