javascript STYLE fontFamily
| fontFamily | NN 6 IE 4 DOM 2 |
| Read/Write | |
|
Provides a prioritized list of font families to be used to render the object's content. One or more font family names may be included in a comma-delimited list of property values. If a font family name consists of multiple words, the family name must be inside a set of inner quotes. Available in IE as a property of the style and runtimeStyle objects only, but the individual font properties are available in currentStyle, as well. |
|
| Example | |
document.getElementById("subhead").style.fontFamily =
"'Century Schoolbook', Times, serif";
|
|
| Value | |
Any number of font family names, comma delimited. Multiword family names must be quoted. Recognized generic family names are: serif | sans-serif | cursive | fantasy | monospace. |
|
| Default | |
Browser default. |
|
Previous: javascript STYLE fontSize
Next: javascript STYLE font
1845,Nickname,Homepage or email,Comments here,Add comment
