开发者

How to check the parent window [duplicate]

This question already has answers here: Run JQuery in the context of another frame (4 answers) Closed 3 years ago.

I am having a problem getting to the parent window. I have a window that has 2 frames... one of the frame opens another window which in returns open a third window. In the third 开发者_如何学Cwindow I want to refresh the very first window by doing this

window.opener.window.opener.close(); 

it only works for non frame setup...what can I use for the frame. I am open to using jQuery too.


Calle's answer looks like a good suggestion. In my experiments IE and Firefox would let me go 2 back to the parent iframe to access functions, but Chrome gave me a security violation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜