BASEFONTNN n/a   IE 4   DOM 1

A BASEFONT element advises the browser of some font information to be used as the basis for text rendering of the current page below the BASEFONT element. The BASEFONT element overrides the default font settings in the browser's user preferences settings.

Be careful with the outerText and outerHTML properties (and the undocumented innerText and innerHTML properties in the Windows version). Because this element does not have an end tag, virtually the entire document becomes part of these property values. Altering them can easily result in a lost document. All four of these properties are best utilized in elements that act as HTML containers by virtue of the position of their start and end tags.

 
HTML Equivalent
<BASEFONT>
 
Object Model Reference
IE [window.]document.all.elementID
colorNN n/a   IE 4   DOM 1
 Read/Write
 

Sets the font color of all text below the BASEFONT element.

 
Example
document.all.tags("basefont")[0].color = "#c0c0c0"
 
Value
Case-insensitive hexadecimal triplet or plain-language color name as a string. See for acceptable plain-language color names.
 
Default Browser default.
faceNN n/a   IE 4   DOM 1
 Read/Write
 

A hierarchy of font faces to use for the default font of a section headed by a BASEFONT element. The browser looks for the first font face in the comma-delimited list of font face names until it either finds a match in the client system or runs out of choices, at which point the browser default font face is used. Font face names must match the system font face names exactly.

 
Example
document.all.tags("basefont")[i].face = "Bookman, Times Roman, serif"
 
Value
One or more font face names in a comma-delimited list within a string. You may use real font names or the recognized generic faces: serif | sans-serif | cursive | fantasy | monospace.
 
Default Browser default.
sizeNN n/a   IE 4   DOM 1
 Read/Write
 

The size of the font in the 1-7 browser relative scale.

 
Example
document.all.myBaseFont.size = "+1"
 
Value
Either an integer (as a quoted string) or a quoted relative value consisting of a + or - symbol and an integer value.
 
Default 3