1秒后跳转
法一:
<!DOCTYPE HTML>
<html>
<head>    
<meta http-equiv="refresh" content="1;url=http://wiki.elesos.com">   
</head>
</html>
2,js实现
<script>   
// 以下方式直接跳转  
window.location.href='http://wiki.elesos.com';  
// 以下方式定时跳转  
setTimeout("javascript:location.href='http://wiki.elesos.com'", 1000);   
</script> 


使用content属性表示刷新或跳转的开始时间与跳转的网址

5秒之后刷新本页面:

<meta http-equiv="refresh" content="5" /> 

5秒之后转到首页:

<meta http-equiv="refresh" content="5; url=http://www.elesos.com/" />
php跳转与定时跳转
header("Location: $httpfile");
header("refresh:1;url=$httpfile");

相关文章:

  • 2022-12-23
  • 2021-09-01
  • 2021-12-05
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案