face
Summary
Sets or retrieves the current typeface family.
Applies to | ? |
---|
This example sets the typeface family using the FACE attribute and the face property.
<FONT FACE="Arial" ID=oFont>
:
<SCRIPT>
alert(oFont.face + "\n" + "When you click this, the font will change");
oFont.face = 'Courier';
alert(oFont.face + "\n" + "The font has changed.");
</SCRIPT>
Syntax
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 15.2.2 (Deprecated)
See also
Related pages
baseFont
font
- fontFamilyfontFamily
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]