Sets or retrieves the initial size of the HTML Application (HTA) window.
Syntax
HTML <HTA:APPLICATION WINDOWSTATE=sWindowSize> Scripting oHTA.windowState[ = sWindowSize ]
Possible Values
sWindowSize String that specifies one of the following values:
normal 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/write with a default value of normal.
Example
This example shows how to retrieve the windowState property.
Sample Code
<HTML> <HEAD> <HTA:APPLICATION ID="oHTA" APPLICATIONNAME="myApp" WINDOWSTATE="maximize" > <SCRIPT> alert("windowState = " + oHTA.windowState); </SCRIPT> </HEAD> <BODY SCROLL="no"> </BODY> </HTML>
Applies To
HTA:APPLICATION
See Also