html实现网页跳转的代码

互联网时代,网页给我们提供了很多方便,而网页跳转这个功能更是给我们带来了交互体验,那么你知道html实现网页跳转的代码是什么吗?现在我们一起去看看吧。

将以下代码存为默认首页文件如index.html,放在根目录下即可。
不隐藏转向后地址
<html>
<head>
<title>Redirect</title>
<meta http-equiv=”refresh” content=”0;url=new site”>
</head>
<body>
</body>
</html>
隐藏转向后地址
<html>
<head>
<title>Redirect</title>
</head>
<frameset framespacing=”0″ border=”0″ rows=”0″ frameborder=”0″>
<frame name=”main” src=”new site” scrolling=”auto” noresize>
</frameset>
</html>

以上就是html实现网页跳转的代码介绍,如果你想了解更深一点的可以进入爱站技术频道进行了解哦。