<script>
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
{ return(confirm('sure to quit?'));
}
}
</script>
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
{ return(confirm('sure to quit?'));
}
}
</script>
解决方案 »
- 谁能告诉我,网页是怎么获取唯一ID的
- javascript读写xml的问题
- 正则匹配名字,好心人进~~
- 点击IE关闭按钮时,想弹出个只有"是否要退出系统?"这几个字的提示框.
- 满难的问题,请高手指教?
- 怎样捕获 ie弹出保存对话框的事件???
- 请教,ie与firefox下节点操作的问题。
- 如何让一个多行文本框的边框不显示?
- js解析XML除了用DOM,还有别的方式吗?
- 这种是不是被挂黑链了? 怎么杜绝啊?
- 怎样在网页中点鼠标右键显示自己的菜单,而不让ie缺省得菜单显示呢?
- http://lucky.myrice.com/javascriptexam/htmleditor/editor/editor.htm 的编辑器数据获取问题
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
{ if(confirm('sure to quit?')!=1)
window.open(url);
}
}
</script>
这是你要的:
<script>
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
{ if(confirm('sure to quit?')!=1)
window.open('#');
}
}
</script>