子窗口打开父窗口
<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();
}