纯HTML自动刷新页面或重定向(http-equiv属性的refresh)

refresh 属性值  --  刷新与跳转(重定向)页面

refresh出现在http-equiv属性中,使用content属性表示刷新或跳转的开始时间与跳转的网址


refresh示例一:5秒之后刷新本页面:

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

refresh示例二:5秒之后转到百度首页

<meta http-equiv="refresh"content="5; url=http://www.baidu.com/"/>

原文地址:https://www.cnblogs.com/YuyuanNo1/p/9797882.html