还是窗口关闭问题!请大家进来看看 还可以用Alt + F4 关闭, 呵呵 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alt+f4都可以取得到!就是那二个关闭不知道要怎么取到这操作呀!!:) 还有我关闭的时候加上if(confirm("要退出 系统 吗?"))判断!按取消的时候怎么还是关闭呀?我的问题怎么人气这么淡呀!!! 询问退出:<body onbeforeunload="return '你想显示的东东'"> <body onbeforeunload="event.returnValue='确定退出?'">任何关闭窗口的事件都可以捕捉(包括ALT+F4,右健关闭,左上角双击) <script language=JScript>function window::onbeforeunload(){if (event.clientY<0 && event.clientX>document.body.clientWidth-20 || event.clientY<0 && event.clientX<20 || event.altKey || event.clientY>document.body.clientHeight) event.returnValue="哦,亲爱的,你真的要离开我吗?"}</script></head><body></body> to:Go_Rush你的方法有漏洞。 <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)"> 如图所示的一个flash版本的幻灯片 收缩式的菜单为什么有的点击时行有的点击没反映?请朋友们指点! 迅雷右下角的“娱乐提示”是怎么做的? ~!~window.open的问题? 复选框 全选 删除表格中的 所有行 请教这样正则表达式如何写 在js中能否把字符串类型转换为日期类型? 求js联动查询完整代码 关于list/menu组件的使用方法 怎么通过超级连接事件 wsh=new ActiveXObject("wscript.shell")打开一个可执行文件的问题! 世界地图!
<body onbeforeunload="return '你想显示的东东'">
function window::onbeforeunload(){
if (event.clientY<0 && event.clientX>document.body.clientWidth-20
|| event.clientY<0 && event.clientX<20
|| event.altKey
|| event.clientY>document.body.clientHeight)
event.returnValue="哦,亲爱的,你真的要离开我吗?"
}
</script>
</head>
<body></body>
你的方法有漏洞。
</object>
<input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)">