Ext js技术之不能关闭的窗口

来源:互联网 发布:手机哼歌识曲的软件 编辑:程序博客网 时间:2024/05/01 09:22
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 


"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello Extjs4.2</title>
<link href="../ExtJS4.2/resources/css/ext-all-neptune.css" rel="stylesheet">
<!-- <script src="../ExtJS4.2/locale/ext-lang-zh_CN.js"></script> -->
<script src="../ExtJS4.2/ext-all.js"></script>
<script type="text/javascript">




Ext.onReady(function(){
var win=new Ext.Window({
title:"不能关闭的窗口",
height:200, width:300,
listeners:{"beforedestroy":function(obj){
alert("想关闭我,这是不可能的!");
obj.show(); return false;
}}
});
win.show();});




</script>
</head>
<body>
<input id="btnAlert" type="button" onclick="a();" value="alert框" />


</body>
</html>
0 0