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>

Comments

Popular Posta

How to enable .htaccess in wamp server

Web Scraping Amazon with PHP

Disable right click script and Google Instant Map Search