您的位置:首页 > 其它

页面跳转的几种方式

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: