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.

Last modified: October 25, 2024

Author

Comments

Write a Reply or Comment

Your email address will not be published.