style.fontFamily (Property)

A list of fonts to be used for the element. The first one in the list that is available will be used.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.fontFamily
CSS syntax:font-family: aFamily ...
Argument list:aFamilyA font family list

The ordering of the font family names dictates the priority with which they are used. The names should be separated from one another by spaces but some font names may have spaces in them, so if you use font names containing spaces, they should be enclosed inside quotes. Make sure that you use a different kind of string delimiter quote for indicating font names to that which you use to enclose the string of font names.

As well as the names of any font families that you think may be installed in the target client browser, you can specify generic font families with the following keywords:

See also:JSSTag.fontFamily, String.fixed(), style.font, style.voiceFamily