窗口关闭事件处理一问。 2、新生成的页面能否一出来就是最大化?这个问题在这个帖子有讨论:http://www.csdn.net/Expert/TopicView1.asp?id=932199 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 第二个问题已经有解答了!我来回答1.如下:<script>function window.onbeforeunload() {if (event.clientX > document.body.clientWidth && event.clientY < 0||event.altKey)alert("关闭窗口");}</script>辨别关闭窗口和刷新、倒退的方法! window.open("new.htm","newwin","fullscreen=yes,status=yes,help=no,toolbar=no,resizable=no,width=" + screen.availWidth + ",height=" + screen.availHeight + "top=0,left=0") 谢谢三位,我用的是beyond_xiruo的方法。 数组重组 jsp页面div里图片滚动实现类似iphone看图片功能 jsp编写的留言板问题 如何查看弹出窗口的源代码 js 编码问题 我想使用Javascript弹出窗口啥都没有 在线等,有关下拉框中取值的问题 请帮我写这样一个简单的js正则表达式,谢谢! jquery easyui 添加节点 请教各位大神 Bootstrap-table隐藏列 colspan>1无法隐藏 寻找xg_delayth(铁鹰),关于目录树问题. 如何用Javascript取得在textarea中被选中的字符?
我来回答
1.如下:
<script>
function window.onbeforeunload() {
if (event.clientX > document.body.clientWidth && event.clientY < 0||event.altKey)
alert("关闭窗口");
}
</script>
辨别关闭窗口和刷新、倒退的方法!