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();

}

posted on 2017-05-03 09:44  知了不了了之  阅读(307)  评论(0编辑  收藏  举报