第一种:
<script language="javascript" type="text/javascript">window.location.href="abc.html";</script>
第二种:
<script language="javascript">alert("返回"); window.history.back(-1); </script>
第三种:
<script language="javascript">window.navigate("index.html");</script>
第四种:
<script language="JavaScript">self.location='index.html'; </script>
第五种:
<script language="javascript">alert("非法访问!"); top.location='xxx.html'; </script>
通过js实现页面跳转的五种方法
最新推荐文章于 2024-04-16 12:15:20 发布
本文介绍了五种实现网页跳转的方法,包括使用location.href、history.back、window.navigate等技术手段,适用于不同场景下的页面导航需求。
651

被折叠的 条评论
为什么被折叠?



