单击浏览器右上角的X关闭窗口弹出提示的小例子
单击浏览器右上角的X弹出提示窗口,简单实现。 代码如下:[removed] [removed] = function () { if (event.clientY < 0 && event.clientX> document.body.scrollWidth) { //event.returnValue = ‘Are you sure you want to leave the page? ‘; window.alert(‘欢迎光
下载地址
用户评论