当前位置: 首页 > 图文教程 > 网页制作 > HTML/XHTML教程 > html 网页跳转代码

HTML/XHTML教程
测试Flash和HTML5 Flash是CPU杀手?
ZF HEADLINK相关的HTML link标签 rel 属性

HTML/XHTML教程 中的 html 网页跳转代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 102 ::
收藏到网摘: n/a

将以下代码存为默认首页文件如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>