HBCMS更多的中文手册参考:

WINDOWSTATE Attribute | windowState参数属性

DHTML文档教程

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

dhtml语法

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

DHTML可能的值

sWindowSizeStringthat 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.

DHTML代码范例

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.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

更多语法参考

Introduction to HTML Applications (HTAs)