用script让IE窗口最大化
File:C:\WINDOWS\system32\hhctrl.ocx
ProgID:Internet.HHCtrl
clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11
ProgID:Internet.HHCtrl
clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11
1 <script language="javascript">
2 function window_onload()
3 {
4 try
5 {
6 maximize.Click();
7 try
8 {
9
10 }
11 catch(e)
12 {
13 window.close();
14 }
15 }
16 catch(e)
17 {
18 }
19 }
20 </script>
21
22 <body onload="window_onload()">
23 <OBJECT id="maximize" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT>
24 <PARAM NAME="Command" VALUE="MAXIMIZE">
25 </OBJECT>
26 <input type=button value="max" onclick="window_onload()"/>
27 </body>
2 function window_onload()
3 {
4 try
5 {
6 maximize.Click();
7 try
8 {
9
10 }
11 catch(e)
12 {
13 window.close();
14 }
15 }
16 catch(e)
17 {
18 }
19 }
20 </script>
21
22 <body onload="window_onload()">
23 <OBJECT id="maximize" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT>
24 <PARAM NAME="Command" VALUE="MAXIMIZE">
25 </OBJECT>
26 <input type=button value="max" onclick="window_onload()"/>
27 </body>