"I want solution for google chrome only cos my code is working fine in IE "
I am trying to use Javascript in order to detect when a user
presses the little 'X' at the top right hand corner of the window i want to execute this code but this code is not working goggle chrome
window.onbeforeunload = function()
// {
// if ((window.event.clientx < 0) || (window.event.clienty < 0)) {
// // alert("close");
// window.opener.location.href = 'requestmeeting2.aspx';
// }
// if (event.altkey == true && event.keycode == 0) {
// //alert("alt + f4 being pressed");
// window.opener.location.href = 'requestmeeting2.aspx';
// }
// }