子窗口打开父窗口

<input type="button" id="selectJS" name="selectJS" value="选择" class="button"
style="width:30" onMouseOver="this.style.cursor='hand'"
onClick="javascript:JsMod('${pageContext.request.contextPath}/jspyfa/selectJx02',800,600);fillOtherText()"/>

 

function JsMod(htmlurl,tmpWidth,tmpHeight){
htmlurl=getRandomUrl(htmlurl);
window.open(htmlurl, window, "height="+tmpHeight+",width="+tmpWidth);
return false;
}

 

子窗口回写

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

}

posted on 2017-04-25 15:33  知了不了了之  阅读(138)  评论(0编辑  收藏  举报