js禁止请求跳转

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

 

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