Confirm in javascript

Below is the code which shows the implementation of 'confirm' in javascript

function confirmDelete()
{
  var x = confirm("Are you sure you want to delete?");
  if (x)
      return true;
  else
    return false;
}

No comments:

Post a Comment