在子窗口添加一个字符串类型的属性
关闭时取得这个属性付给TextBox

解决方案 »

  1.   

    window.opener.document.FORMNAME.TEXTBOXNAME.value = VALUE;
      

  2.   

    Opener得到父窗口对象onunload事件
      

  3.   

    ms-help://MS.VSCC/MS.MSDNVS.2052/DHTML/workshop/author/dhtml/reference/methods/showModalDialog.htmshowModalDialog Method--------------------------------------------------------------------------------Creates a modal dialog box that displays the specified HTML document.SyntaxvReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
    ParameterssURL Required. String that specifies the URL of the document to load and display. 
    vArguments Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the window object.