The window.confirm() method use to modal dialog box with an optional text message and two buttons with functionality OK and Cancel. OK used for acceptance and cancel for rejection.
if(window.confirm("Are you sure fo delete this?"))
{
deleteItem(itemId);
}
For storing the result we can store the result:
var status = window.confirm("Are you sure for delete this?");
Following need to be have in mind-
1- The argument which is passed is optional and not required by the specification.
2- Dialog boxes is modal windows.
if(window.confirm("Are you sure fo delete this?"))
{
deleteItem(itemId);
}
For storing the result we can store the result:
var status = window.confirm("Are you sure for delete this?");
Following need to be have in mind-
1- The argument which is passed is optional and not required by the specification.
2- Dialog boxes is modal windows.
No comments:
Post a Comment