When you implement a delete feature in your application, a very basic additional feature which is always expected to be implemented is a confirmation box, so that the user gets a prompt before doing some delete activity.
For implementing this, there is already a Javascript function calledconfirm().
The syntax for this is very simple and i am sure every developer is aware of this. The syntax is as follow:
var confirm = confirm("Are you sure you want to do this?");
if(confirm)
{
//do your delete operation
}
else
{
return false;
}
Hope this tip did help u.