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 called confirm().
The syntax for this is very simple and i am sure every developer is aware of this. The syntax is as follow:

If you want to customize this confirmation box, which is now in demand you can do it easily by writing small block of code as follows.

But first create a div (let’s say the div id is id_confrmdiv) with the confirmation text and two buttons.
Then give two different ids to the buttons, lets say id_truebtn and id_falsebtn.
You can show the message wherever you you like in the following manner