javascript - confirmation popup message (ASP.NET/VB) -
i want have confirmation message box pop when user clicks cancel button on form. believe correct javascript code:
function confirmation() { var answer = confirm("are sure want cancel? information have entered discarded.") if (answer) { window.location = "index.htm"; } }
but, i'm not sure how can call function vb code behind page.
on cancel button add markup attribute
onclientclick="return confirmation();"
Comments
Post a Comment