document.tags.borderRightWidth

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.borderRightWidth

Description

The borderRightWidth property specifies the width of the right border of an element as associated with the tag called tagName.

Example

Listing 7.168 uses the borderRightWidth property to set the size of right border that surrounds a text header. Notice that only the right portion of the border is shown.

Listing 7.168 Setting the Right Border Width with the borderRightWidth Property
<html>

<script>
<!-- Hide

//Create a style sheet tag that creates a right border
document.tags.H2.borderRightWidth = "10";

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

<h2>This text has a right 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.