Click to return to the DHTML, HTML     
VERSION Attribute | versi...     HTML Applications Referen...    
Web Workshop  |  DHTML, HTML & CSS

WINDOWSTATE Attribute | windowState Property


Sets or retrieves the initial size of the HTML Application (HTA) window.

Syntax

HTML<HTA:APPLICATION WINDOWSTATE=sWindowSize>
ScriptingoHTA.windowState[ = sWindowSize ]

Possible Values

sWindowSize String that specifies one of the following values:
normalWindow is the default size for Microsoft Internet Explorer.
minimizeWindow does not display on launch. Instead, the title of the minimized application appears in the taskbar.
maximizeWindow 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>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTA:APPLICATION

See Also

HTML Applications Overview



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.