I always forget how to do this simply:
<a href="https://geek.ralpharama.co.uk/" onclick="return confirm('Are you sure you want to?');">Go to the link</a>
This pops up a confirmation dialog before following the link.
This is useful for critical links that, for example, delete an item.
Comments