Filename: delete_button.js Use: Used to validate the action of a user. Very
easy to attach to a button in your form. When a user
clicks the button, a JavaScript pop-up window appears
with a confirmation message.
if( confirm("Are you sure you want to delete this
item?") == true)
{
document.FORM NAME GOES HERE.txtCommand.value = "Delete";
document.FORM NAME GOES HERE.submit();
}
else
{
return;
}