gpt4 book ai didi

php - 如何防止页面显示在 iframe 之外

转载 作者:行者123 更新时间:2023-11-28 01:42:07 24 4
gpt4 key购买 nike

我有一些页面,遗憾地在 google 中列出。

我现在将这些页面包含在选项卡中的其他页面中作为 iframe。

如何将登陆原始页面的任何人重定向到新位置。

所以 page1.php 现在是 page_new.php#page1

原始页面已删除所有页眉/页脚等,因此限制了导航。

最佳答案

谢谢。

我也找到了这个

   <script type="text/javascript"> 
if(top.location == self.location)
{
top.location.href = 'http://www.newurl.com/#map'
}
</script>

这似乎也有效。

谢谢大家:)

关于php - 如何防止页面显示在 iframe 之外,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25325063/

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