PHP式
<? Header("Location:http://www.phome.net"); ?>
html中打开便转到其他页面
在<head>和</head>之间加入
<meta http-equiv="Refresh" content="0;url=....."> 即可。
其中,content后面的值是刷新时间。0为立即刷新。3为三秒后刷新。url后面的值为你想跳转到的页面的链接。
或
<body onLoad="parent.location='.......'">
javascript中弹出选择框跳转到其他页面
<mce:script language="javascript"><!-- function logout(){ if (confirm("你确定要注销身份吗?\n是-选择确定,否-选择取消")){ window.location.href="....." } } // --></mce:script>
javascript中弹出提示框跳转到其他页面
<mce:script language="javascript"><!-- function logout(){ alert("你确定要注销身份吗?"); window.location.href="......" } // --></mce:script>
ASP中直接跳转到其他页面
<% response.redirect "......" %>