Categories:

JavaScript:

A link can execute a JavaScript command upon clicking (instead of loading a page). Simply use the keyword javaScript:, along with the code to execute:

Click to reload!

<a href="javaScript:window.location.reload()">Click to reload!</a>