如果当前窗口不是最上层窗口(比如是在Iframe中),那么就把自己变为最上层窗口。

 <script language="javascript" type="text/javascript">
        if (window.top != null && window.top.location != window.location) {
            window.top.location = window.location;
        }
    </script>

这样就不会在长时间不动,页面会嵌套在iframe中

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-02-27
  • 2021-09-20
  • 2021-10-11
  • 2022-01-19
相关资源
相似解决方案