父窗口中加入如下javascript代码:SFHS.value=window.showModalDialog('./C1020/try.jsp'); 子窗口通过window.top.returnValue=str;返回值 最后,通过window.close();关闭子窗口