用模态对话框:
vReturnValue = window.showModalDialog(sURL [, vArguments][, sFeatures])sURL:  
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. sFeatures:
Optional. String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited values: dialogHeight:iHeight  Sets the height of the dialog window (see Res for default unit of measure). 
dialogLeft:iXPos  Sets the left position of the dialog window relative to the upper-left corner of the desktop. 
dialogTop:iYPos  Sets the top position of the dialog window relative to the upper-left corner of the desktop. 
dialogWidth:iWidth  Sets the width of the dialog window (see Res for default unit of measure). 
center:{ yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. The default is yes. 
help:{ yes | no | 1 | 0 } Specifies whether the dialog window displays the context-sensitive Help icon. The default is yes. 
resizable:{ yes | no | 1 | 0 } Specifies whether the dialog window has set dimensions. The default for both trusted and untrusted dialog windows is no. 
status:{ yes | no | 1 | 0 } Specifies whether the dialog window displays a status bar. The default is yes for untrusted dialog windows and no for trusted dialog windows. 

解决方案 »

  1.   

    showModalDialog('ttt.htm','','dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');模态框
      

  2.   

    在模态框中如何取原窗口中的对象?
    用window.opener.document.forms[0].fieldname.value 好像取不到。
      

  3.   

    用模态框参数传递就可以了
    var s=new Object();
    var str=window.showModalDialog("cm_check.asp?xm="+form.xm.value,s,"dialogHeight=282px;help=0;status=0;scrollbars=1")
    if(str.type==1)
    window.close()新窗口中
    ……
    <script language="javascript">
    function fh(bmid,rid,xm,sex)
    {
    var s=new Object();
    s.type=1;
    s.xsid=rid;
    window.returnValue=s;
    window.close();
    }
    </script>
      

  4.   

    showModalDialog("Radio.jsp","","dialogWidth:325px;status:no;dialogHeight:365px");
    这样就打开一个浮在当前窗口之上的新窗口,在不关闭新窗口就不能对当前窗口进行操作,