案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<meta http-equiv="refresh" content="5;url=//www.w3xue.com" />
4
</head>
5
<body>
6
7
<script type="text/javascript">
8
x=document.getElementsByTagName("meta")[0];
9
document.write("Http equiv: " + x.httpEquiv);
10
</script>
11
12
<p>We have moved! The new URL is: <a href="//www.w3xue.com">//www.w3xue.com</a></p>
13
<p>You will be redirected to the new address in five seconds. If you see this message for more than 5 seconds, please click on the link above.</p>
14
15
</body>
16
</html>
17