我遇到了一个问题。我有一个灯箱,其中一个页面打开一个 iframe,其中包含不同域上的 SSL 页面(用于信用卡处理)。交易完成后,将显示一个链接。我需要这个链接才能从 iframe 中跳出到灯箱中。
很简单,我想。但是 usingparent.document.location='';
给了我Error: Permission denied to access property 'document'
, using parent.location.href
ofwindow.parent.location.href
给了我NS_ERROR_DOM_PROP_ACCESS_DENIED: Access to property denied
,显然top.location.href
也打破了灯箱。我想过自动打破链接中的页面,但我不知道如何在不打破灯箱的情况下做到这一点。我用谷歌搜索了它,但网络似乎以top.loc...
答案为主。
有任何想法吗?