CAPTION Attribute | caption Property
Sets or gets a Boolean value that indicates whether the window is set to display a title bar or a caption, for the HTML Application (HTA).
HTML <HTA:APPLICATION CAPTION = bTitleBar... > Scripting [ bTitleBar = ] HTA:APPLICATION.caption
bTitleBar A Boolean that specifies one of the following values.
- Default. Title bar is displayed.
- Title bar is not displayed.
The property is read-only. The property has a default value of yes.
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. BY turning off the caption, the program icon, the Minimize button, and the Maximize button are disabled. 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.
This example shows how to get the caption property.<HTML> <HEAD> <HTA:APPLICATION ID="oHTA" CAPTION="yes" > <SCRIPT> alert ("caption = " + oHTA.caption); </SCRIPT> </HEAD> <BODY SCROLL="no"> </BODY> </HTML>