1、直接关闭

window.close();

2、关闭并提示

window.opener = null;

window.close(); www.youkud.com欢迎你

3、关闭不提示

window.opener = null;

window.open("", "_self");

window.close();