window.close() 避免弹框提示关闭

阅读更多
function Close(){
	var ua = navigator.userAgent;
	var ie = navigator.appName == "Microsoft Internet Explorer"?true:false;
	if(ie){
		var IEversion = parseFloat(ua.substring(ua.indexOf("MSIE")+5,ua.indexOf(";",ua.indexOf("MSIE"))));
		alert(IEversion);
		if(IEversion < 5.5){
			var str = "";
			str += "";
			document.body.insertAdjacentHTML("beforeEnd",str);
			document.all.noTipClose.Click();
		}else{
			window.parent.opener = null;
			window.parent.open('','_self','');
			window.parent.close();
		}
	}else{
		widow.parent.close();
	}
	}

你可能感兴趣的:(close,ie)