BORDERSTYLE Attribute | borderStyle Property

DHTML, HTML, & CSS

BORDERSTYLE Attribute | borderStyle Property


Retrieves the style set for the content border within the HTML Application (HTA) window.

Syntax

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

Possible Values

sStyle String that specifies one of the following values:
normalNormal 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 with a default value of normal.

Remarks

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.

Sample Code

<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 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:
Version data is listed when the mouse hovers over a link, or the link has focus.
HTA:APPLICATION

See Also

html applications overviewInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.