javascript STYLE fontFamily
@March 15, 2008, 1:22 a.m.
fontFamily | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/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. |
Permanent URL:
http://javascript.gakaa.com/style-fontfamily.aspx
Powered by Linode.