[英]Firefox window.opener issue
"window.opener" works fine in both IE and Firefox as long as 'Open in New Tab' is used from the right-click menu; 只要在右键菜单中使用“在新标签中打开”,“window.opener”在IE和Firefox中都能正常工作; Error console says "window.opener" is null.
错误控制台说“window.opener”为空。 Is there any other way the opener can be accessed?
有没有其他方式可以访问开启者?
Edit: Error console says "window.opener" is null only when "Open in New Tab" is clicked. 编辑:错误控制台说“window.opener”仅在单击“在新标签页中打开”时为空。 For all other cases, there is no such error.
对于所有其他情况,没有这样的错误。 Hence, what i would like to know is if an alternate other than "window.opener" exists.
因此,我想知道的是,是否存在除“window.opener”之外的替代。
window.opener
only works if the window (or tab, if it was diverted into a tab) was opened with window.open
or via a target
attribute or similar. window.opener
仅在窗口(或选项卡,如果它被转移到选项卡中)使用window.open
或通过target
属性或类似物打开时才有效。 In particular, the UI never sets the opener of a window. 特别是,UI从不设置窗口的开启者。
这是window.open() IIRC
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.