Sets or retrieves the initial size of the HTML Application (HTA) window.
Syntax
HTML | <HTA:APPLICATION WINDOWSTATE
= sWindowSize... >
|
---|
Scripting | [ sWindowSize = ] HTA:APPLICATION.windowState |
---|
Possible Values
sWindowSize | String that 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.
Example
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.
Standards Information
There is no public standard that applies to this property.
Applies To
See Also
Introduction to HTML Applications (HTAs)