如何屏蔽窗口的关闭按钮?高分等待! <script language="JavaScript"><!--window.open('test.asp','','fullscreen')//--></script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同上 我觉得应该 "fullscreen=yes" function window.onbeforeunload(){ //禁止关闭窗口 if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { alert("无法关闭"); //new ActiveXObject("WScript.Shell").sendKeys{"{ENTER}") window.event.returnValue="确定要退出本页吗?"; new ActiveXObject("WScript.Shell").sendKeys("{ESC}") } //new ActiveXObject("WScript.Shell").sendKeys("{ESC}")}function document.onkeydown(){ //捕获ALT+F4键 if(event.altKey&&event.keyCode==9) { alert('禁止退出!'); event.keyCode=0; event.returnValue=false; }}<input type=button value=关闭 onclick="window.opener=null;window.close()">绝对有效! 在我点关闭按钮的时候,出现提示,是否要退出该页面,确定的话就退出,但我想在此时退出的时候执行某个特定的动作,怎么办?我的页面是定时刷新的,如果用onunload的话,在每次刷新的时候也会执行那个动作,请问有什么办法可以解决?还有,在用Alt+F4关闭窗口的时候,显示的提示信息和电击关闭按钮的信息是一样的,而没有出现“禁止退出”的警告窗口。我想不用onunload,在用户关闭窗口之前执行一个logout动作。 window.open("abc.html","newWindow","fullscreen=3,height=100, width=300, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"); input 文本框 有文本时触发的事件 Jquery checktree 怎么动态取数据啊???高手请帮帮小弟 求一相册效果,扒一晚上,没扒下来~!! 正则替换的标签判断问题,谢谢 鼠标移动到某张图片时如何让文字跟着改变 帮助我弄一个值 jquery.gridnav插件 高分请请高手!!!!!!!!!!!!!!!!!! 表格的单元格的宽度与高度可不可以做到自由拖动来改变? 为什么我不能用windows.open在新窗口中打开链接?(附代码) 请教:如何使窗口没有最大化、最小化和关闭按钮?(在县等待) 如何将IE窗口右上角的关闭按钮(X)设置为disable???
{
//禁止关闭窗口
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
alert("无法关闭");
//new ActiveXObject("WScript.Shell").sendKeys{"{ENTER}")
window.event.returnValue="确定要退出本页吗?";
new ActiveXObject("WScript.Shell").sendKeys("{ESC}")
}
//new ActiveXObject("WScript.Shell").sendKeys("{ESC}")
}function document.onkeydown()
{
//捕获ALT+F4键
if(event.altKey&&event.keyCode==9)
{
alert('禁止退出!');
event.keyCode=0;
event.returnValue=false;
}
}<input type=button value=关闭 onclick="window.opener=null;window.close()">绝对有效!