I have an existing icon that performs a javascript reload of the page. How do I add an alert with an ok or cancel prior to executing the reload?
<a href="#" onClick="window.location.reload()"><img src="img/reload.png" alt="Reset" name="Reset" width="32" height="32" align="middle" id="Reset" /></a>
The command you’re looking for is
confirm: