WINDOWSTATE Attribute | windowState Property
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.