I want this link to have a JavaScript dialog that asks the user “Are you sure? Y/N”.
<a href="?status=1">My Link</a>
If the user clicks “Yes”, the link should load, if “No” nothing will happen.
What is the easiest way to do this?
There are several ways to do this, but I have forgotten the easiest way