js禁止请求跳转

window.onbeforeunload = function(){
    return '你确定要关闭吗?';
}

 

posted @ 2019-05-06 15:34  zrn  阅读(1467)  评论(0编辑  收藏  举报