BORDERSTYLE Attribute | borderStyle

HTML (DHTML)

BORDERSTYLE Attribute | borderStyle Property

Internet Development Index

Sets or retrieves the style set for the content border within the HTML Application (HTA) window.

Syntax

HTML<HTA:APPLICATION BORDERSTYLE = sStyle... >
Scripting[ sStyle = ] HTA:APPLICATION.borderStyle

Possible Values

sStyleString that specifies one of the following values:
normalDefault. Normal border.
complexRaised and sunken border.
raisedRaised 3-D border.
static3-D border typically used for windows that do not accept user input.
sunkenSunken 3-D border.

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

Remarks

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

All HTAs have two adjacent borders: one for the content of a window, and one for the application window. The borderStyle property sets the style for the content border, while the border property controls the application window border.

Example

This example uses the borderStyle property to apply a normal border around the content of a window.

<HTML>
<HEAD>
<TITLE>Hello, World!</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="sampleApp"
CAPTION="yes"
BORDER="thin"
BORDERSTYLE="normal"
>
<SCRIPT>
alert("borderStyle    = " + oHTA.borderStyle);
</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.

Standards Information

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)