HTML code-
<form> .... <a class="art-button" href="edit.php" >Edit</a> <a class="art-button" href="#" onclick="show_confirm()">Delete</a> </form> JavaScript-
<script type="text/javascript"> function show_confirm() { var r=confirm("Do you want to delete?"); if (r==true) { // call "delete.php?id=value" } else { //go back to same page } } how can I call delete.php?id=value from javascript`