Tuesday, October 27, 2009

Comfirm code of Javascript To Confirm Deletion of record

<html>
<head>
<script type="text/javascript">
<!--
function confDelete()
{
var answer = confirm("Do you really want to delete the Record ?");

if (answer){
return true;
}
else{
return false;
}
}

//-->
</script>
</head>
<body>
<form>
<input type="button" onclick="confDelete()" value="Delete record">
</form>
</body>
</html>

No comments:

Post a Comment