<script type="text/javascript" language="javascript"> window.onbeforeunload = doUnload; function doUnload() { if ((window.event.clientX < 0) || (window.event.clientY < 0) || ((event.altKey == true) && (event.keyCode == 0))) { alert("hello IE"); btncall(); } else { if (!e) var e = window.event; { if (e) { alert("hellooooooooooo Chromee..."); alert(document.getElementById("<%=lbtn_Logout.ClientID %>")); var lbtnlogout = document.getElementById("<%=lbtn_Logout.ClientID %>"); __doPostBack(lbtnlogout, ''); } } } function btncall() { debugger; var btn = document.getElementById("ctl00_lbtn_Logout"); if (btn != null) { btn.click(); } } } </script>
<body onbeforeunload="doUnload()" onkeydown="return DisableEnterKey()">
EventTarget
__doPostBack
__doPostBack('lbtn_Logout', '')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)