S sichuan Unregistered / Unconfirmed GUEST, unregistred user! 2006-06-05 #2 返回赋值可以用javascript实现, 保证不刷新父页面的其他文本框,我 也想知道。
石 石嶷山友 Unregistered / Unconfirmed GUEST, unregistred user! 2006-06-06 #3 使用 Session 或者 Cookies 都可以实现的。弹出窗口改变 Session 或者Cookies的值让父窗口读取即可了。
风 风铃夜思雨 Unregistered / Unconfirmed GUEST, unregistred user! 2006-06-06 #4 <script> function slect_color(tcstr) { var c=window.showModalDialog("xxx.htm","s","dialogWidth=300px;dialogHeight=270px;status=0" var d=c; if (c && c!="" { if (d.length==7) { d=d.substr(1,d.length); } eval("window.document.all."+tcstr+".value=d;" } } </script> <input type=text name=tdim_12 value='内容' size=6 maxlength=6> <a href='#' onClick="javascript:slect_color('tdim_12');">xxx</a> xxx.htm的内容执行下面JS关闭 <SCRIPT event=onclick for=Ok language=JavaScript> window.returnValue = "dsfsdf"; window.close(); </SCRIPT>
<script> function slect_color(tcstr) { var c=window.showModalDialog("xxx.htm","s","dialogWidth=300px;dialogHeight=270px;status=0" var d=c; if (c && c!="" { if (d.length==7) { d=d.substr(1,d.length); } eval("window.document.all."+tcstr+".value=d;" } } </script> <input type=text name=tdim_12 value='内容' size=6 maxlength=6> <a href='#' onClick="javascript:slect_color('tdim_12');">xxx</a> xxx.htm的内容执行下面JS关闭 <SCRIPT event=onclick for=Ok language=JavaScript> window.returnValue = "dsfsdf"; window.close(); </SCRIPT>