如何用程序让IE窗口全屏,就像按F11的效果,而非简单的最大化。

解决方案 »

  1.   

    window.open(channelmode=yes,fullscreen=yes);
      

  2.   

    function Button2_onclick() {
    window.open("default.aspx",null,'fullscreen=1');
    }
    测试通过。OK??
      

  3.   

    window.open("aa.html","test","fullscreen=yes,toolbars=no"); 
    这个在ie6 sp1中已经失效了
    还可以在页面onload事件中调用
    self.resizeTo(screen.width,screen.height)  
    self.removeTo(0,0)
    具体大小可以根据要求调调
      

  4.   

    我是想模拟F11的事件,应该可以用SendMessage之类的方法实现,但具体怎么做不太清楚
      

  5.   

    用个按钮来实现,如下:
    <input type=button value="全屏" onclick=window.open(document.location,"name","fullscreen,scrollbars")> //name:你要的页面
    完全可以做到你要的效果
      

  6.   

    要设信任站点:
    <script language="javascript">
    var shell = new ActiveXObject("WScript.Shell");
    shell.SendKeys("{F11}");
    </script>
      

  7.   

    switch (System.ConsoleKey.F11)
                {
                    case ConsoleKey.F11:
                        this.Label1.Text = "窗体大小";
                        break;            }
    简单说个例子。
      

  8.   

    用javascript 弹出全屏窗口 然后 关闭自己。
      

  9.   

    alien54155415 的方法很好用,只是要设置可信站点,这点不太理想
      

  10.   

    ((SHDocVw.InternetExplorer)oIE).FullScreen=true;