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

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 = http://www.mamicode.com/window.location.href;
}

function setSelectValue(cxxf02id,xmmc){
window.opener.document.getElementById("kch").value = http://www.mamicode.com/cxxf02id;
window.opener.document.getElementById("kcmc").value = http://www.mamicode.com/xmmc;
window.opener.fillOtherText();
window.close();

}

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