关闭页面的时候触发一个事件
想在关闭页面的时候触发一个事件
该写在那里?

——life is full of ups and downs!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body onunload="window.open('http://www.163.com');">
</body>
</html>