博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

如何做最简单的url跳转

Posted on 2005-12-15 04:27    阅读(4845)  评论(5编辑  收藏  举报
在你的head里面加入一下代码就可以了
<meta2 HTTP-EQUIV=REFRESH CONTENT="0;URL='http://lei123.3322.org'">
CONTENT=0 代表跳转等待的时间
URL='http://lei123.3322.org'跳转的网址

如果嫌不够保险,可用下面的
<html>
<head>
<title>Loading</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="0;URL=http://lei123.3322.org/">
</head>
<SCRIPT>
<!--
window.location.replace('
http://lei123.3322.org/');
// -->
</SCRIPT> 
<body bgcolor="#F0F1F4" text="#000000">
<center><href="http://lei123.3322.org/">Click into the page!</a></center>
</body>
</html>