hello... just need help..... i had made one confirmation box... work successfully but the problem is when i clicked cancel, the data also had been deleted... i need when the cancel button, the data will be remain... so anyone can help me???
Code:
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Are you sure?")
if (answer){
alert("One record sucessfully deleted!")
window.location = "q_group1.php";//my page if click button yes and the data will be deleted
}
else
{
window.location = "query_grp1.php";// the page remain and data remain if click cancel button
}
}
//-->
</script>