document.tags.borderColor

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.borderColor

Description

The borderColor property specifies the color of the border of an element as associated with the tag called tagName.

Example

Listing 7.166 uses the borderColor property to set the color of the border that surrounds a text header to blue.

Listing 7.166 Setting the Border Color with the borderColor Property
<html>

<script>
<!-- Hide

//Create a style sheet tag that creates a left border
document.tags.H2.borderWidths(10);
document.tags.H2.borderColor = "blue";

//Hide End --->
</script>

<h2>This text has a blue border</h2>

</html>
							
							
							
						

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.