JavaScript

Js跳转网页的几种方法html教程

时间:2013/6/19 22:25:30  作者:WPF之家  来源:http://www.wpf123.com  查看:110  评论:0
内容摘要: 1、利用location进行跳转 <script language="javascript" type="text/javascript"> window.location.href="...

 

1、利用location进行跳转

 <script language="javascript" type="text/javascript">           window.location.href="XXX.asp?"+参数;     </script>

2、返回跳转

   <script language="javascript">    alert("返回");    window.history.back(-1);   </script>

3、navigate跳转

 <script language="javascript">    window.navigate("xxx.asp/html");  </script>

4、self.location

<script language="JavaScript">          self.location='xxx.asp/htm';   </script>

5、top.location

<script language="javascript">          alert("非法访问!");          top.location='xxx.asp';   </script>

 


标签:跳转 网页 几种 方法 

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。本文出自“wpf之家”,请务必保留此出处:http://www.wpf123.com

相关评论
Copyright © 2009-2014 WPF之家(http://www.wpf123.com/) All rights reserved
 Powered by WPF之家
闽ICP备10004896号