页面跳转的几种方式
2009-10-31 15:31
253 查看
一. html 方式跳转
<head>
<meta http-equiv="refresh" content="3" ;url="xxx.html"> //content = 3 表示等待时间. url = 要跳转的页面 .
</head>
二. js 方式跳转
1. <script language="j avascript">
location.replace("http://www.***.com")
</script>
2.
<script language="j avascript">
setTimeout(window.location="http://www.dinmo.net",0)
</script>
3:
<script language="JavaScript" >
bName = navigator.appName;
if ((bName == "Netscape") ||
(bName == "Microsoft Internet Explorer")) window.location=http://www.dinmo.net;
</script>
<FRAMESET rows='*'>
<FRAMESET cols='*'>
<FRAME SRC='http://www.dinmo.net'>
<noframes>
按钮式:
<INPUT name="pclog" type="button" value="/GO"
onClick="location.href='http://www.itpx.net/'">
链接式:
<a href="javascript:history.go(-1)">返回上一步</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
直接跳转式:
<script>window.location.href='http://www.itpx.net';</script>
三 . php 方式
$url = czbin.php
Header("HTTP/1.1 303 See Other");
Header("Location: $url");
个人博客:xmsdn.com
<head>
<meta http-equiv="refresh" content="3" ;url="xxx.html"> //content = 3 表示等待时间. url = 要跳转的页面 .
</head>
二. js 方式跳转
1. <script language="j avascript">
location.replace("http://www.***.com")
</script>
2.
<script language="j avascript">
setTimeout(window.location="http://www.dinmo.net",0)
</script>
3:
<script language="JavaScript" >
bName = navigator.appName;
if ((bName == "Netscape") ||
(bName == "Microsoft Internet Explorer")) window.location=http://www.dinmo.net;
</script>
<FRAMESET rows='*'>
<FRAMESET cols='*'>
<FRAME SRC='http://www.dinmo.net'>
<noframes>
按钮式:
<INPUT name="pclog" type="button" value="/GO"
onClick="location.href='http://www.itpx.net/'">
链接式:
<a href="javascript:history.go(-1)">返回上一步</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
直接跳转式:
<script>window.location.href='http://www.itpx.net';</script>
三 . php 方式
$url = czbin.php
Header("HTTP/1.1 303 See Other");
Header("Location: $url");
个人博客:xmsdn.com
相关文章推荐
- js实现页面跳转的几种方式
- js实现页面跳转的几种方式
- JavaScript实现页面跳转的几种方式
- js实现页面跳转的几种方式
- js实现页面跳转的几种方式
- JavaScript实现页面跳转的几种方式
- JavaScript实现页面跳转的几种方式
- JavaScript实现页面跳转的几种方式
- js实现页面跳转的几种方式
- JS实现页面跳转的几种方式
- Javascript实现页面跳转的几种方式
- js实现页面跳转的几种方式
- js重定向---实现页面跳转的几种方式
- JavaScript实现页面跳转的几种方式
- js实现页面跳转的几种方式
- javascript中几种页面跳转方式
- 辛星与您解读PHP页面跳转的几种实现方式
- JavaScript实现页面跳转的几种方式
- js实现页面跳转的几种方式
- js实现页面跳转重定向的几种方式