案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script>
5
function goodbye()
6
{
7
alert("感谢您访问 W3xue!");
8
}
9
</script>
10
</head>
11
12
<body onunload="goodbye()">
13
14
<h1>欢迎访问我的首页</h1>
15
<p>请关闭窗口,或按 F5 刷新页面。</p>
16
17
</body>
18
</html>
19