<script> function myFunction() { var r = confirm("OK to delete?"); if ($r == false) { return false; } } </script>