html页面 跳转其他网址 完整代码

空白html页面 跳转其他网址 完整代码是该怎么写啊

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<script>
window.location.href="http://zhidao.baidu.com/question/1303800286938553059.html?entry=qb_ihome_tag"
</script>
<body>
</body>
</html>

不显示内容 直接跳转到其他页面 

追问

如果显示内容该怎么实现啊

追答<script>
setTimeout("javascript:location.href='xxx.html'", 5000);
</script>

内容正常写 脚本里换成上面 这是5秒后跳转 时间自己改

追问

如果我想加个超链接 点击立即跳转 怎么实现呢 大哥

追答

a 标签 最普通的跳转

<a href="xxx.html">xxx网站</a>

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-07-20
直接使用location.href跳转

<script>
window.location.href="http://www.baidu.com";

</script>