I have read through every answer to any question related to window.opener and cannot find a solution to my problem.
I have a main window that opens a popup help window. One of the links in the popup help menu is supposed to load a url into the main window and then close the popup window.
The issue is this - if the main window if closed I need to open a new window with the url specified. If the main window is open everything works just fine. If the main window is closed and I try to access any property of window.opener I get an Access Denied error. The window.opener returns an object reference even if the opener has been closed. If the opener is open I can access it fine and even check the name of the window.
window.opener.closed - always returns false as others have mentioned.