当然不行了,你重写一个函数就可以了<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title></head><body onbeforeunload="window.onbeforeunload()" >
<script language="JavaScript">
<!--
function window.onbeforeunload(){
 window.event.returnValue="Are you sure?"
}//-->
function exit(){
 if(confirm("Are you sure")!=true){
 
 }
}
</script><form name="name1">
<input type="button" name="button1" value="退出" onClick="exit()">
</form>
</body>
</html>