var agree=confirm("Are you sure you want to delete?");
return true ;
return false ;
And on the submit button:
<input type="submit" name="submit" id="submit_<?php echo $row_rs_orderHistory['OrderID']; ?>" value="Delete" onclick="confirmSubmit()" />
My problem is that if you click "No" on the dialog, it still deletes.
Also tried an inline version
onclick="confirm('Are you sure you want to delete?');"
I searched the forum but cannot find anything that will work.