网站域名跳转代码
约 360 字大约 1 分钟
2025-07-31
域名跳转代码 可以从自己的网站跳转到另一个网站
方法/步骤
- 第一种:
如果你要让域名页面显示几秒钟之后跳转,可以在html代码的<head></head>部分加上这样的域名跳转代码:
<meta http-equiv="refresh" content="3; url=http://将这里改成要跳转的域名"> - 第二种:
不隐藏域名跳转之后的地址
<html>
<body>
<meta http-equiv="refresh" content="0.1;url=将这里改成要跳转的域名">
</body>
</html> - 第三种:
可隐藏域名跳转之后的地址:
<html>
<frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="将这里改成要跳转的域名" scrolling="auto" noresize>
</frameset>
</html> - 4
第四种:
定时的域名跳转代码
<meta http-equiv="refresh" content="3;rul=http://将这里改成要跳转的域名">
此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content=" 为跳转前停暂的秒数,rul= 为跳转的域名 - 5
第五种:
如果你的域名要在客户端跳转,可以这样:<script language="javascript" type="text/javascript">window.location="http://将这里改成要跳转的域名";;</script> - 6
第六种:
域名在服务器端跳转Response.Redirect(http://将这里改成要跳转的域名)Response.End
更新: 2020-12-11 13:20:10
原文: <https://www.yuque.com/seoers/uyyd4f/ri5nxr>