window.onbeforeunload
Microsoft Dynamics CRM 2011のHTMLWebリソースのJSアプリケーションでイベントを処理する際に問題が発生しました。「通常の」IEを使用すると、次のコードが正常に機能します。
window.onbeforeunload = function (e) {
if (changedData) {
var message = 'leave...';
if (typeof e == 'undefined') {
e = document.parentWindow.event;
}
if (e) {
e.returnValue = message;
}
return message;
}
}
しかし、CRM 2011 Outlookクライアントでは、脱退メッセージが表示されません。ウィンドウを閉じるときにLeaveメッセージを受け取るアイデアはありますか?