Monday, 13 June 2016

Confirm before delete


Confirm before delete








Html:

<a href="delete.php"  onclick="return doconfirm()">Delete</a>

Javascript Function:


function doconfirm()
{
    contact=confirm("Are you sure you want to delete this?");
    if(contact!=true)
    {
        return false;
    }
}
banner
Previous Post
Next Post

0 comments: