JSSTag.fontFamily (Property)

The font family or typeface name for an object.


CSS level - 1
JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyJSSTag.fontFamily
NmyJSSTag.fontFamily = aFontList
CSS syntax:font-family: aFontList
HTML syntax:<FONT FACE="...">
Argument list:aFontListA list of one or more font names

The JSSTag.fontFamily property corresponds to the font-family CSS property in a style sheet. It allows you to select a font for use in the object within the document.

Some example values of specific font families are listed below:

Font names containing spaces will need to be enclosed in quotes.

These are generic family names and allow the browser to choose its own best matching font:

You should provide your list of fonts as a comma separated list with the most preferred fonts to the left.

The default value for this property depends on the browser font settings in the user preferences.

This value is inherited from its parent container element.


See also:style.fontFamily