WINDOWSTATE Attribute | windowState

HTML (DHTML)

WINDOWSTATE Attribute | windowState Property

Internet Development Index

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

sWindowSizeString that specifies one of the following values:
normalDefault. Window 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-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

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)