For some reason, I cannot get the onSubmit to trigger correctly:
In the <head> of the page, I have:
Code: Select all
<script type="text/javascript">
function confirmDelete(){
return (confirm("Are you quite sure that you wish to delete the selected game(s)?"));
}
</script>Code: Select all
<form name="frmStalledGames" id="frmStalledGames" action="delete.php" method="post" onSubmit="confirmDelete();">In IE, the comfirm prompt is displayed but irrespective of which button is clicked (OK or Cancel), the delete script is run.
I'm sure that it's something really obvious, I just can't see it right now.
Thanks in advance for any help that you can offer.