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:
Arial
Courier
Times
Garamond
Palatino
Helvetica
"New Century Schoolbook"
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:
serif
sans-serif
monospace
cursive
fantasy
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.
Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0.
See also: | style.fontFamily |
Prev | Home | Next |
JSSTag.display | Up | JSSTag.fontSize |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |