I've got a problem to handle the window.onbeforeunload
event in a JS-Application in a HTML-web resource for Microsoft Dynamics CRM 2011. By using the "normal" IE the following code works fine:
window.onbeforeunload = function (e) {
if (changedData) {
var message = 'leave...';
if (typeof e == 'undefined') {
e = document.parentWindow.event;
}
if (e) {
e.returnValue = message;
}
return message;
}
}
But in the CRM 2011 Outlook client, I don't get the leave message. Have you any idea to get a leave message when closing the window?