By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Window.opener giving "Permission Denied" error

P: 28
We have a main window (call it Parent). Clicking on a link in the main window will open up another IE window (Child) using the loadInFrame() method.
In the Child window, i load another IE window (which loads an applet. Call this SubChild). This is for the first time. Now if i go ahead and click on the link in the Parent window, the Child and the Subchild windows are refreshed. None of the windows are closed.

Now if i refresh the Parent window, then the Child Window is refreshed but gives me an error saying the window.opener is null.

Another problem is i get an "Access Denied" if i try close the Subchild window and try to refresh the child window. Am new to this and dont know how these relationships work.

Note: Both the parent and the child window are in the same domain.

Any help would be appreciated.

Regards,
Hussain
Feb 29 '08 #1
Share this Question
Share on Google+
3 Replies


gits
Expert Mod 5K+
P: 5,298
hi ...

when you refresh the parent window all references are lost so you trash the opener-reference ... in case you need the interaction then just be sure that you close the child-window before you refresh the parent ...

kind regards
Feb 29 '08 #2

P: 1
I have the same problem (window.opener giving "permission denied" error) except that in my case business requires me to keep the pop-up (child) window open.

My question is why would reusing this window to load a URL give this exception?
LK
Sep 1 '10 #3

kovik
Expert 100+
P: 1,044
It makes sense. Technically, that window no longer exists. Allowing the child access to a new, possibly unrelated window is a security hazard.

When the reference is no longer valid, maybe you should just close the child window.
Sep 1 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.