1。 效果图: 
2。 主页面的代码:
<script type="text/javascript"> <br>function open_windows_and_get_selectedinfo(openwindow, control, control2) { <br>var str = window.showModalDialog(openwindow, window, "dialogWidth=740px;dialogHeight=600px;center=yes;help=no;resizable=no;status=no"); <br>if (!str) <br>return; <br>document.getElementById(control).value = str[0]; <br>document.getElementById(control2).value = str[1]; <br>} <br><br></script>
3。 弹出页面的代码:
<script type="text/javascript" language="javascript"> <br>function dbclick_return_and_close(strid, strvalue) { <br>alert("执行该方法!"); <br>var str = new Array(strid, strvalue); <br><br>window.returnValue = str; <br>window.close(); <br>} <br></script>











