<HEAD>
<SCRIPT>
// Supplies a return value from modeless dialog box.
var sUserName="";              // Passes URL and file name of dialog box as a variable.
var oDialog = "myDialog.htm";  // Passing the window object allows for the creation of a 
// callback to return information from the modeless dialog box.function fnCallDialog()                                             
{
   showModelessDialog(oDialog,window,
      "status:false;center:yes;dialogWidth:300px;dialogHeight:300px");
}
fnCallDialog();
</SCRIPT>
</HEAD>

解决方案 »

  1.   

    http://www.csdn.net/Develop/read_article.asp?id=15113
      

  2.   

    你可以计算一下,window.screen.width和window.screen.height可以得到屏幕的长宽,然后根据对话框的长宽就可以算出对话框居中的时候的left和top坐标
      

  3.   

    Window.showModalDialog('url','Dialog  Arguments  Value  ',  'dialogHeight:  355px; dialogWidth:  285px;  status:no; center:  yes;  help:  no  ')