I am using asp.net page, I have called following java script event:
window.onbeforeunload = doUnload;
function doUnload() {
if (!isClose) {
document.getElementById('<%=btnClose.ClientID %>').click();
}
}
So what I am trying to achieve is that if user close that page then I want to store some value in database,that's why I have fired button click event. This is working fine on IE11 but not working on chrome, Can you please tell me solutions to fix my problem asap.
Regards,
Sudhanshu