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


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

相关文章:

  • 2021-12-04
  • 2021-09-04
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-06-19
  • 2022-01-03
相关资源
相似解决方案