我要捕获浏览器窗口右上角的关闭按钮,该用哪个事件??? if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey) {ende();} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>function window.onbeforeunload(){if(event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)return(confirm("你真的要退出吗"))}</script> <script>function window.onbeforeunload(){if(event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)return true;}</script> <script language=javascript>function window.onbeforeunload(){ if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { window.event.returnValue="确定要退出本页吗?"; }}</script> <script language=javascript>function window.onbeforeunload(){ window.event.returnValue="";}</script> 我也想知道anytel(阿鸡)提出来的问题? 在框架网页里:<script language=javascript>function window.onbeforeunload(){ if(event.clientX>360&&event.clientY<0||event.altKey) { window.event.returnValue="确定要退出本页吗?"; }}</script> 【【用js进行复制时,如何去掉“是否允许该页从您的剪贴板上粘贴信息”的提示】】 JavaScript 日期转化 这个该如何理解谢谢 关于复选框全选问题,急! javascript如何设置表单的action值 浏览器对于js文件的缓存策略是什么?有什么办法可以在html中控制缓存吗? 一个有点特殊的拖放问题 IE里如何得到窗口已经选择的文本内容(即自定意文本的样式)!!!谢谢! 请教:怎样在JS的数组里面读取数据库 求达人【关于页面元素之间的控制约束关系】 showModalDialog用法,来者有分! 求屏蔽右键的代码和屏蔽状态栏显示连接的javascript代码
function window.onbeforeunload(){
if(event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
return(confirm("你真的要退出吗"))
}
</script>
function window.onbeforeunload(){
if(event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
return true;
}
</script>
function window.onbeforeunload()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
window.event.returnValue="确定要退出本页吗?";
}
}
</script>
function window.onbeforeunload()
{
window.event.returnValue="";
}
</script>
<script language=javascript>
function window.onbeforeunload()
{
if(event.clientX>360&&event.clientY<0||event.altKey)
{
window.event.returnValue="确定要退出本页吗?";
}
}
</script>