How to show Confirm Message in JavaScript
Confirm message is used when there is choice to user whether he wanted to go ahead or not. It is client side message JavaScript must be enable to display this message.
<script language='javascript' type='text/javascript'>
function ConfirmMessage()
{
if(confirm("Your Message."))
{
return true;
}
else
{
return false;
}
}
</script>
<asp:LinkButton ID="lnkConfirmMessage" OnClientClick="ConfirmMessage();" runat="server">ConfirmMessage</asp:LinkButton>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.