Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


FACE Attribute | face Property

Sets or retrieves the current typeface family.

Syntax

HTML Scripting
< ELEMENT FACE = sTypeface ... >
object . face [ = sTypeface ]

Possible Values

sTypeface String that specifies or receives the typeface family.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .

Example

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>

Standards Information

This property is deprecated in HTML and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

[ Object Name ] Platform Version
Win16:
Win32:
Windows CE:
Unix:
Mac:
 
BASEFONT , FONT
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.