gpt4 book ai didi

iframe - 域之间的 iframe 内的 IE6 _top 链接

转载 作者:行者123 更新时间:2023-12-04 07:01:44 24 4
gpt4 key购买 nike

我有一个包含 iframe 的域,其中包含来自另一个域的内容。在这个 iframe 里面是 _top 链接。在 IE6 上单击它们时什么也不会发生。我已经准备了一个最小的例子。请转至http://www.bemmu.com/static/top.html用IE6试试吧。

编辑:这似乎只有在安全级别为“高”(或可能是自定义)时才会发生,这是我的 IE 在全新安装时的默认设置

来源http://www.bemmu.com/static/top.html :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
<html>
<body>
<iframe src="http://bemmu4.appspot.com/static/iframe.html"/>
</body>
</html>

来源 http://bemmu4.appspot.com/static/iframe.html :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/DTD/strict.dtd">
<html>
<body>
<a href="http://www.google.com" target="_top">Let's go to Google!</a>
</body>
</html>

有没有办法让这些 _top 链接起作用?

最佳答案

我的机器上没有安装 ie6,但我认为你可以在 iframe 中尝试一个小技巧,在你的 anchor 标签中设置一个 onclick 属性 window.top.location.href='http://www.google.com'; .它有效吗?

关于iframe - 域之间的 iframe 内的 IE6 _top 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1731581/

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