1.PHP延时跳转代码
//跳转到浏览界面
header("Refresh:1;url=machine_list.php");
//不延时
header("location: http://www.baidu.com");
?>
2.JavaScript 跳转
window.location= "http://www.baidu.com";
document.location = "http://www.baidu.com";
3.(带进度条)
跳转到baidu.comloading...
size=46 name=chart>
var bar=0
var line="||"
var amount="||"
count()
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99){
setTimeout("count()",100);
}else{
window.location = "http://www.baidu.com/";
}
}
4.HTML
5.ASP 跳转
response.redirect "http://www.baidu.com"
%>
原文:http://www.cnblogs.com/tmdsleep/p/4605082.html