Thursday, November 22, 2012

Get rid of "Do you want to close this window?" in CRM

You might get this question when opening CRM in Internet Explorer:

The webpage you are viewing is trying to close the window.
Do you want to close this window?
yes no

This message appears in CRM 4.0 only when you are using Internet Explorer 7.0 and you have enabled the application mode setting.Nevertheless, it is an annoying message which you can get rid of!

To do so, open the default.aspx file which resides in the root of the CRM Web site. In this file there are these three lines of code:

var oMe = window.self;
oMe.opener = window.self;
oMe.close();
Modify the second line of this snippet and end up with these three lines:
var oMe = window.self;
oMe.open('','_self','');
oMe.close();

You will no longer receive that message.  Keep in mind that following any update or migration, you might need to reapply the change.

No comments:

Post a Comment