0

我有一个页面包含一个框架。在这个框架内,我可以打开一个弹出窗口。如何判断此弹出窗口是否从父页面打开?

4

1 回答 1

0
if (window.opener && 
    window.opener.top === window.opener) {
    // this window was opened from a window that is it's own top (not an IFrame)
}
于 2012-05-18T17:48:56.467 回答