---
title: "网页关闭时提示是否关闭"
author: "ware"
date: "2011-04-22T16:15:11Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2011-04-22T16:15:11Z"
id: 1012793
url: "https://ware.iteye.com/blog/1012793"
---

&lt;html&gt;  
&lt;head&gt;  
&lt;title&gt; code   by   meixx &lt;/title&gt;  
&lt;/head&gt;  
&lt;body bgcolor="#CCCCCC" onbeforeunload= "return   '是否要关闭窗口？ ' "&gt;  
&lt;input   type= "button "   onclick= "this.disabled=true "   value= "Click   Me "&gt;  
&lt;input type="button" disabled="true" value="aaaaaaa"&gt;  
&lt;/body&gt;  
&lt;/html&gt;