使用js实现页面跳转方法

来源:互联网 发布:x80锐途凯立德导航端口 编辑:程序博客网 时间:2024/06/04 18:23

如何使用js实现页面跳转呢?下面是小编为大家整理的五种用js实现页面跳转的方式,一起来学习下吧!

js实现跳转方法:

第一种:

<script language="javascript" type="text/javascript">

window.location.href="login.jsp?backurl="+window.location.href; 

</script>

第二种:

<script language="javascript">

alert("返回");

window.history.back(-1);

</script>

第三种:

<script language="javascript">

window.navigate("top.jsp");

</script>

第四种:

<script language="JavaScript">

self.location='top.htm';

</script>

第五种:

<script language="javascript">

alert("非法访问!");

top.location='xx.jsp';

</script>

通过以上五种方式任意一种,大家都可以用js实现页面跳转,希望能帮上朋友们吧!

转载地址: http://www.uzzf.com/news/7525.html
0 0
原创粉丝点击