Export (0) Print
Expand All

face attribute | face property

Sets or retrieves the current typeface family.

Syntax

HTML<element face="p" ... >
JavaScript

p = object.face

Property values

Type: String

the typeface family.

Standards information

Examples

This example sets the typeface family using the FACE attribute and the face property.


<FONT FACE="Arial" ID=oFont>
:
<SCRIPT>
    console.log(oFont.face + "\n" + "When you click this, the font will change");
    oFont.face = 'Courier';
    console.log(oFont.face + "\n" + "The font has changed.");
</SCRIPT>

See also

fontFamily

 

 

Build date: 10/15/2012

Show:
© 2015 Microsoft