'face' Example : face « Javascript Properties « JavaScript Reference





'face' Example

    
<html>
<body>
<font id="myElement">Sample Text</font><br>
<button onclick="myElement.face='courier';">Courier Font</button>
<button onclick="myElement.face='arial';">Arial Font</button>
</body>
</html>

    
      
      










Related examples in the same category

1.'face' Syntax and Note
2.'face' is applied to