function confirmDeletion()
{
if (confirm("Are you sure you want to delete?")) {
return true
}
else {
return false
}
}
<asp:Button ID="btnDelete" runat="server" Text="Delete" TabIndex="12" onclientclick="return confirmDeletion();" />
{
if (confirm("Are you sure you want to delete?")) {
return true
}
else {
return false
}
}
<asp:Button ID="btnDelete" runat="server" Text="Delete" TabIndex="12" onclientclick="return confirmDeletion();" />
Comments
Post a Comment