WINDOWSTATE Attribute | windowState参数属性
| DHTML文档教程 |
Sets or retrieves the initial size of the HTML Application (HTA) window.
dhtml语法
HTML | <HTA:APPLICATION WINDOWSTATE
= sWindowSize... >
|
---|
Scripting | [ sWindowSize = ] HTA:APPLICATION.windowState |
---|
DHTML可能的值
sWindowSize | Stringthat specifies one of the following values: normal | Default. Window is the default size for Microsoft® Internet Explorer. | minimize | Window does not display on launch. Instead, the title of the minimized application appears in the taskbar. | maximize | Window is sized to fill the screen. |
|
The property is read-only.
The property has a default value of
normal.
Remarks
Note The windowState property is read-only; however, the WINDOWSTATE attribute can be used to set the initial value.
DHTML代码范例
This example shows how to retrieve the windowState property.
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
WINDOWSTATE="maximize"
>
<SCRIPT>
alert("windowState = " + oHTA.windowState);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准
There is no public standard that applies to this property.
Applies To
更多语法参考
Introduction to HTML Applications (HTAs)