window.close 取消关闭提示

window.opener = null
window.open("", "_self","");
window.close();

原文地址:https://www.cnblogs.com/liuhouhou/p/2576187.html