Click to return to the DHTML, HTML     
BORDERSTYLE Attribute | b...     commandLine Property     HTML Applications Referen...    
Web Workshop  |  DHTML, HTML & CSS

CAPTION Attribute | caption Property


Retrieves whether the window is set to display a title bar, or caption, for the HTML Application (HTA).

Syntax

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

Possible Values

bTitleBar Boolean that specifies one of the following values:
yesTitle bar is displayed.
noTitle bar is not displayed.

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

Remarks

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.

Example

This example shows how to retrieve the caption property.

Sample Code

<HTML>
<HEAD>
   <HTA:APPLICATION ID="oHTA"
    CAPTION="yes" 
   >
   <SCRIPT>
      alert ("caption    = " + oHTA.caption);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest caption. 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.