• 使浏览器窗口最大化


    有以下两种方法:

    方法1:

      <object  id=obj  classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">   
      <param  name="Command"  value="Maximize"> </object>
      <input  type=button  value="Max Window"  onclick=obj.Click()> 


    方法2:
            if (document.layers)
            {
                var maxWidth=screen.availWidth-10;
                var maxHeight=screen.availHeight-20;
            }
            else
            {
                var maxWidth=screen.availWidth+8;
                var maxHeight=screen.availHeight+7;
            }

            self.resizeTo(maxWidth,maxHeight);
            self.moveTo(-4,-4);

  • 相关阅读:
    if判断语句和循环语句
    列表,元祖,字典的详细概述
    day10
    day09
    day08
    java---基本程序设计总结
    day07
    day06
    day05
    day04
  • 原文地址:https://www.cnblogs.com/aspsmile/p/1276193.html
Copyright © 2020-2023  润新知