How do you detect if window.close worked? I am using a function like:
function closePopupWindow() {
self.close();
var ww = window.open('', '_self');
ww.close();
}
Which works well for the most part, but the close button doesn't always work due to browser settings, so I wanted to notify the user if the window doesn't close, that they will have to do it manually. I tried adding a timeout in the function, but that seems to get called regardless.
Any help would be appreciated. Thanks.