BORDER Attribute | border Property

Sets or gets the type of window border for the HTML Application (HTA).

Syntax

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

Possible Values

sType A String that specifies one of the following values.
thick
Default. Thick window border, plus a size grip and sizing border for resizing the window.
dialog
Dialog window border.
none
No window border.
thin
Thin window border with a caption.

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

Remarks

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

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, the program icon, the Minimize button, and the Maximize button. This property can be used with the borderStyle property, which controls the content border in the window.

Example

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

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

Code example: https://samples.msdn.microsoft.com/workshop/samples/author/hta/hta_allEX.hta

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)