`

网页自动跳转代码

阅读更多

 

<!--p /* 网页自动跳转代码 代码一、 在<ht-->

代码一、
在<html>后边加这句
<meta HTTP-EQUIV=REFRESH CONTENT="2;URL=your.web">


其中content="几秒后跳转;url=跳转页面"


代码二、

在 <head></head> 之间加入以下代码:

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

注:content:时间,以秒为单位;URL:转向的网址。



在 <body> 里添加代码:

<body onload="location.href='www.yoururl.com'">

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics