Name

BORDERCOLOR — NN n/a IE 4 HTML n/a

Synopsis

BORDERCOLOR=”colorTripletOrName"

Optional

The BORDERCOLOR attribute should assign a color to whatever border surrounds an IFRAME element. In practice, because borders controlled by attributes do not appear in the Windows 95 version of Internet Explorer 4, no color appears either. On the Macintosh side, an assigned color may appear on two adjacent edges of an IFRAME element, but the look is unpredictable. Use style sheet rules to assign borders and border colors to IFRAME elements.

Example

<IFRAME SRC="quotes.html" WIDTH=150 HEIGHT=90 BORDERCOLOR="salmon">
</IFRAME>

Value

A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names.

Default

None.

Object Model Reference

IE

[window.]document.frameName.borderColor

Get Dynamic HTML: The Definitive Reference 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.