使浏览器窗口最大化
有以下两种方法:
方法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);