HBCMS更多的中文手册参考:

CAPTION Attribute | caption参数属性

DHTML文档教程

Sets or retrieves a Boolean value that indicates whether the window is set to display a title bar or caption, for the HTML Application (HTA).

dhtml语法

HTML<HTA:APPLICATION CAPTION = bTitleBar... >
Scripting[ bTitleBar = ] HTA:APPLICATION.caption

DHTML可能的值

bTitleBarBooleanthat specifies one of the following values:
yesDefault. Title bar is displayed.
noTitle bar is not displayed.

The property is read-only. The property has a default value of yes.

Remarks

Note  The caption property is read-only; however, the CAPTION attribute can be used to set the initial value.

The application title appears only when the caption property is set to yes. turning off the caption also disables the program icon and the minimize and maximize buttons. in this case, you must provide an alternate way for the user to quit the hta, such as a button that invokes the close method of the window object.

DHTML代码范例

This example shows how to retrieve the caption property.

<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
CAPTION="yes"
>
<SCRIPT>
alert ("caption    = " + oHTA.caption);
</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.

是否符合公共标准

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

HTA:APPLICATION

更多语法参考

Introduction to HTML Applications (HTAs)