---
title: "浏览器关闭事件"
author: "daoshud1"
date: "2011-04-19T09:57:38Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2011-04-19T09:57:38Z"
id: 1007673
url: "https://daoshud1.iteye.com/blog/1007673"
---

```java
function window.onbeforeunload(){
alert("关闭");
}
```