document.tags.borderStyle
JavaScript 1.2+ Nav4+ Syntax
document.tags.tagName.borderStyle
Description
The borderStyle property specifies the style of the border that surrounds an element as associated with the tag called tagName.
The borderStyle property can be assigned one of the following values: none, solid, double, inset, outset, groove, or ridge.
Example
Listing 7.169 uses the borderStyle property to set the border around a text header to a double line.
Listing 7.169 Setting the Border Style with the borderStyle Property
<html> <script> <!-- Hide //Create a style sheet tag that creates a double border document.tags.H2.borderWidths(10); document.tags.H2.borderColor = "red"; document.tags.H2.borderStyle = "double"; //Hide End ... |
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.