function windowclose() { var browserName = navigator.appName; if (browserName=="Netscape") { window.open('', '_self', ''); window.close(); } else { if (browserName == "Microsoft Internet Explorer"){ window.opener = "whocares"; window.opener = null; window.open('', '_top'); window.close(); } } }(鼠标移到代码上去,在代码的顶部会出现四个图标,第一个是查看源代码,第二个是复制代码,第三个是打印代码,第四个是帮助)