function clearOnConfirm() {
if (confirm("Are you sure you want to continue?")) {
document.getElementById("<%=txtInput.ClientID %>").value = '';
return true;
} else {
return false;
}
}
Attribute.aspx.vb
'*** Button ***'
With Me.btnSubmit
.Attributes.Add("Onclick", "return clearOnConfirm();")
.Style.Add("cursor", "hand")
End With