how to show alert box on the click in link
<html> <head> <script type="text/javascript"> document.getElementById('myDeleteButton').onclick = function() { return confirm('Are you sure you want to delete?'); } </script> </head> <body> <a onclick="javascript:return confirm('Are you sure you wish to delete? This action cannot be undone.')" href="DELETE-SCRIPT-URL"> Delete </a> </body> </html>