gpt4 book ai didi

父级上的javascript重定向

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:26:24 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Redirect parent window from an iframe action using JavaScript

我有一个带有 iframe 的页面,并且在这个 iframe 的内容中有一个在所有窗口上的重定向,我该怎么做?

尝试过:

window.location.href = 'logged.html';

页面是frame打开还是up打开我能搞定?

 if(isiframe) window.top.location.href

--- 解决方案 ---

if($("#cboxOverlay", top.document).length > 0)
if($("#cboxOverlay", top.document).css("display") != 'none')
window.top.location.href = '{{ path('portada') }}';

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com