js 跳到指定页面
Javascript跳到指定页面的几种常用方法
- ☀ Method 1:
- <script language="javascript" type="text/javascript">
- window.location.href="register.php?backurl="+window.location.href;
- </script>
- ☀ Method 2:
- <script language="javascript">
- alert("返回到上一页");
- window.history.back(-1);
- </script>
- ☀ Method 3:
- <script language="javascript">
- window.navigate("index.php");
- </script>
- ☀ Method 4:
- <script language="JavaScript">
- self.location='index.htm';
- </script>
- ☀ Method 5:
- <script language="javascript">
- alert("请登录后再试!");
- top.location='login.php';
- </script>
本文作者:未来往事
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处
此处评论已关闭