1、在新页面的<titla></tital>中多敲些全角空格2、showModalDialog打开的窗口没有最大化和最小化按钮3、用框架页,提交后就不会产生新窗口

解决方案 »

  1.   

    第一个写错了,是在<title></title>里多敲全角空格,就可以把"网页对话框"挤出去
      

  2.   

    关于问题2,查了一下文档,showModalDialog绝对没有最大化和最小化按钮showModalDialog 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. 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. 此项控制对话框是否出现状态栏但是可以通过程序来实现最大化效果,那就是检测屏幕分辨率,把高和宽传递给dialogHeight,dialogWidth
      

  3.   

    要想有最大化和最小化按钮,必须是window.open()方法打开的窗口
      

  4.   


    1.我在title之间打了很多空格,但,打开窗口的标题栏上还是有"..."这样几个点,去不掉!2.最大化最小化按钮暂时不解决,算了。showModalDialog()里没有这个!!我想让先点一个链接:如
    <a href="#" onClick="Javascript:usr()">test</a>
    <Script>
    <!--
     function login_usr(){
      showModelessDialog("our/login.jsp",window,"dialogHide:yes;edge:raised;dialogWidth:350px;dialogHeight:250px;help:no;status:no;scroll:no");
    }
    //-->
    </Script>
    打开一个登录窗口中,登录后,自动关闭刚打开的登录窗口!我用过:window.opener.close();可以!! 但有时不好用,有没有更好的办法???
    我看过下面这些关于showMOdalDialog()的文字,测试不行啊:
    window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框,由于是对话框,因此它并没有一般用window.open()打开的窗口的所有属性。    window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。     当我们用showModelessDialog()打开窗口时,不必用window.close()去关闭它,当以非模态方式[IE5]打开时, 打开对话框的窗口仍可以进行其他的操作,即对话框不总是最上面的焦点,当打开它的窗口URL改变时,它自动关闭。而模态[IE4]方式的对话框始终有焦点(焦点不可移走,直到它关闭)。模态对话框和打开它的窗口相联系,因此我们打开另外的窗口时,他们的链接关系依然保存,并且隐藏在活动窗口的下面。3.如何在另外一窗口灵活控制(打开,关闭)一个showModelessDialog() 或 showModalDialog()打开的窗口????????????????????????
      

  5.   

    1 在title 中输入多个 &nsbsp; 直到看不到你网页对话框这几个字2 最大化和最小华 showModalDialog() 不支持
      

  6.   

    没办法去掉最大化,最小化按钮
    menubar=yes or no 可以有效吧
      

  7.   

    1."..."去不掉
    2.showModelessDialog()很少用,不清楚
    3.这不可能,因为模式窗口始终是浮在父窗口上层的,不关闭它就不能对父窗口进行操作,所以不可能从另一窗口对它进行控制
      

  8.   

    请帮我举一个例子吧。
    在A.htm在用showModalDialog()方法打开另外一个登录窗口B,同时关闭窗口A,如果在B窗口中按了提交按钮,打开页面C,按了取消,关闭B???谢
      

  9.   

    1."..."去不掉
    2.showModelessDialog()很少用,不清楚
    3.这不可能,因为模式窗口始终是浮在父窗口上层的,不关闭它就不能对父窗口进行操作,所以不可能从另一窗口对它进行控制
    ++++++++++++++++++++++++++++++++++++++++
    经测试,同意如上观点~
      

  10.   

    “在A.htm在用showModalDialog()方法打开另外一个登录窗口B,同时关闭窗口A”
    在B打开的情况下不可能关闭A,不信你试试你对showModalDialog的认识可能还不很清楚,showModalDialog是一个模式窗口,并不是一个普通页面,只有在它关闭后,父窗口的程序才会继续运行,还可以用它得到一个返回值子页面返回值的语句是
    window.returnValue = "你的值";
    父窗口得到值的语句是
    var v = showModalDialog("子页面.htm","","");
    如果子页面被关闭,返回值默认为null