详情页

php和HTML刷新当前页面

时间:2023年10月05日

编辑:佚名

php和HTML刷新当前页面,很多时候会用到,所以便记录一下!
echo "<script language=JavaScript> location.replace(location.href);</script>";
echo '服务器忙,请<a href="javascript:document.location.reload()">刷新</a>页面,或稍后再试!谢谢!!'; 
exit;
html <meta>设置自动刷新或者几秒内跳转到指定页面
指定时间自动刷新:
<meta http-equiv="refresh" content="2"/>
指定时间跳转到指定页面:
<meta http-equiv="refresh" content="5;URL=http://www.baidu.com"/>
相关文章
猜你需要