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

BORDER Attribute | border Property


Retrieves the type of window border for the HTML Application (HTA).

Syntax

HTML<HTA:APPLICATION BORDER=sType>
Scripting[ sType = ] oHTA.border

Possible Values

sType String that specifies one of the following values:
thickThick window border, plus a size grip and sizing border for resizing the window.
dialogDialog window border.
noneNo window border.
thinThin window border with a caption.

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

Remarks

The border property affects the window border and is valid only for HTA windows that contain a title bar or caption. Setting border to none eliminates the title bar, program icon, and Minimize/Maximize buttons. This property can be used with the borderStyle property, which controls the content border within the window.

Example

This example uses the border property to apply a thin border to the window.

Sample Code

<HTML>
<HEAD>
   <TITLE>Hello, World!</TITLE>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONAME="myApp"
    BORDER="thin"
   >
   <SCRIPT>
      alert("border    = " + oHTA.border);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

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