I have this codes to confirm if the user wants to continue. If the user clicks OK, I want it to go to btnLogOut_Click(). Want code will I add to my javascript?
In my .aspx code behind:
btnLogout.Attributes.Add("onclick", "return ConfirmLogOut();");
In my .aspx (in masterpage, actually)
<script type="text/javascript">
<!--
function ConfirmLogOut() {
var answer = confirm("Are you sure you want to Log Out?")
if (answer){
WHAT HERE?
}
else{
alert("Cancelled transaction.")
}
}
//-->
</script>
Kindly help.. Thanks in advance... 
Enter your message below
Sign in or Join us (it's free).