window.open打开新窗口报错ie 位指明错误,原因是window没有加引号!

function JsMod(htmlurl,tmpWidth,tmpHeight){
htmlurl=getRandomUrl(htmlurl);
var newwin = window.open(htmlurl, "window", "height=" + tmpHeight + ",width=" + tmpWidth);
window.location.href = window.location.href;
}

function setSelectValue(cxxf02id,xmmc){
window.opener.document.getElementById("kch").value = cxxf02id;
window.opener.document.getElementById("kcmc").value = xmmc;
window.opener.fillOtherText();
window.close();

}

原文地址:https://www.cnblogs.com/itniwota/p/6800322.html