用JS写了个弹出窗口,但是我想弹出的窗口,有个最大化的按纽,就像一般的网页上的那个按扭一样,该怎么写?请大家帮忙

解决方案 »

  1.   

    <script>
    window.open('','','resizable=yes');
    </script>
      

  2.   

    <script>
    window.open('xxx.htm','窗口名称','height=100,width=100,resizable=yes');
    </script>
      

  3.   

    resizable=yes' 这个属性 就可以显示那个最大化按钮了吗?
      

  4.   

    window.open('','','resizable=yes');
      

  5.   

    可以试试在window.open()中加上:width="100%" height="100%"
      

  6.   

    个人意见,仅供参考模态对话框应该没有window.open('','','resizable=yes');
      

  7.   

    window.open('','','resizable=yes');
      

  8.   

    function OpenQuery(url,count)
    {
        // set the modal window property..
        var WinSettings = "center:yes;resizable:yes;scroll:auto;dialogWidth:500px;dialogHeight:400px;fullscreen:1"
        
        //Open the modal window
        var RtnArgs = window.showModalDialog( url,"",WinSettings);
    }
    这样写出来的窗口没有最大化按钮,我想加格最大化的按钮该怎么写?
      

  9.   

    我调用是这样的
    OnClientClick="return OpenET('./ETC.aspx',22);"
      

  10.   

    模态的就像是alert的对话框一样,你不关闭或不点确定是点不了当前页面的其他东西的
    非模态没有这种限制
      

  11.   

    function OpenQuery(url,count)
    {
        // set the modal window property..
        var WinSettings = "center:yes;resizable:yes;scroll:auto;dialogWidth:500px;dialogHeight:400px;fullscreen:1"
        
        //Open the modal window
        var RtnArgs = window.showModalDialog( url,"",WinSettings);
    }
    这样写出来的窗口没有最大化按钮,我想加个最大化的按钮该怎么写?
      

  12.   

    不明白,你说例子count并没有用上啊
      

  13.   

    window.open('','','resizable=yes')
    直接就ok了
    套用就好了
      

  14.   

    window.open('','','resizable=yes')
    这样不就可以嘛?
    你把你自己的代码贴出来 
    让大家看看为什么啊
    上面的各位都已经说的够明白了
      

  15.   

    Minimize,Maximize参数,可以设置窗口的最大化,最小化按钮。参见下面代码:
    window.showModalDialog("help.html",window,'dialogwidth:600px;dialogheight:500px;help=no;status=no;center=yes;edge=sunken;resizable=yes;Minimize=yes;Maximize=yes');
      

  16.   

    人呢?楼主还在不?
    我给你找到了!
    在我的博客上转了一篇《弹出网页窗口全攻略(html/hta) 》
    http://blog.csdn.net/xpnew/archive/2007/05/04/1596177.aspx
    那上面有一段:
    2.弹启一个被F11化后的窗口
    <html>
    <body onload="window.open(''http://www.it365cn.com','example02','channelmode');">;
    <b>www.e3i5.com</b>
    </body>
    </html>
    如果这个办法不行,你再看看上面其它的方法吧。