document.ids.borderStyle

JavaScript 1.2+ Nav4+ Syntax

document.ids.idName.borderStyle

Description

The borderStyle property specifies the style of the border that surrounds an element as associated with the ID called idName.

The borderStyle property can be assigned one of the following values: none, solid, double, inset, outset, groove, and ridge.

Example

Listing 7.111 uses borderStyle property to set the border around a text header to a double line.

Listing 7.111 Setting the Border Style with the borderStyle Property
<html>

<script>
<!-- Hide

//Create a style sheet id that creates a double border
document.ids.ABORDER.borderWidths(10);
document.ids.ABORDER.borderColor = "red";
document.ids.ABORDER.borderStyle = "double";

							 //Hide ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.