Saturday, 25 February 2012

"The web page you are viewing is trying to close the window. Do you want to close this window?" - error resolved for IE

Error: The web page you are viewing is trying to close the window. Do you want to close this window? : Resolved

I am getting error: 'The web page you are viewing is trying to close the window. Do you want to close this window?' error in Jquery modal window. I have read so many articles on net but not getting proper answer. The error is occured when window.close function has been called.
But in Jquery, when use different extensions, they are using "close" function to close the window. extension is using jQuery close function but in IE it is creating conflict with window's close function. So, you can resolved "The web page you are viewing is trying to close the window. Do you want to close this window?" error by changing the name of the function in jQuery modal window or any Jquery extension file.

If it is not a case for you then you can try as many blogs mentioned solution:
window.open('', '_parent', '');
self.opener = this;
self.close();

No comments:

Post a Comment