如果你的window.open()不带参数的话.
可以将表单设置为文档,弹出窗口表单设置为答复.这样在弹出窗口中就可以用隐藏域继承文档就可以用代理取了.[如果文档未保存不确定是否可读,没有试过]
你也可以用showModalDialog试一下[估计可以]
showModalDialog--------------------------------------------------------------------------------DescriptionCreates a dialog box and displays in it the HTML document given by URL. The dialog box is a special window that is modal, meaning it retains the input focus until the user closes it. Syntax
variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])Parameter Description 
sURL  String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it. 
vArguments  Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.  
sFeatures  Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax  Description  
dialogWidth:number  Sets the width of the dialog window. 
dialogHeight:number  Sets the height of the dialog window. 
dialogTop:number  Sets the top position of the dialog window relative to the upper-left corner of the desktop. 
dialogLeft:number  Sets the left position of the dialog window relative to the upper-left corner of the desktop. 
center:{yes | no | 1 | 0 }  Specifies whether to center the dialog window within the desktop. Default is yes. 
 Return ValueReturns a number, string, or other value. This is equal to the value of the returnValue property as set by the document given by URL.

解决方案 »

  1.   

    例:
    function AddNode()
    {
    var strPathName=window.location.pathname;
    var inParameter="NULL"+","+"NULL"+","+GetSelectValue(document.forms[0].ModelID);
    var outResult=showModalDialog(strPathName.substring(0,(strPathName.lastIndexOf('/')+1))+"Define_Node.jsp?Node=NULL&Action=NULL&ModelID="+GetSelectValue(document.forms[0].ModelID),inParameter,"dialogWidth:12;dialogHeight:6;dialogTop:400;dialogLeft:500;status:no;");
    if(outResult=="False")
    {
    }
    else
    {
    var outParameter=outResult.split(",");
    var strOutNode=outParameter[0];
    var strOutAction=outParameter[1];
    var strOutNode_,strOutAction_;
    strOutNode_=strOutNode.split("_");
    strOutAction_=strOutAction.split("_");
    document.forms[0].ListNode.length=document.forms[0].ListNode.length+1;
    document.forms[0].ListAction.length=document.forms[0].ListAction.length+1;
    var iLen=document.forms[0].ListNode.length;
    document.forms[0].ListNode.options[iLen-1].value=strOutNode_[0];
    document.forms[0].ListNode.options[iLen-1].text=strOutNode_[1];
    document.forms[0].ListAction.options[iLen-1].value=strOutAction_[0];
    document.forms[0].ListAction.options[iLen-1].text=strOutAction_[1];
    }
    }