Font face : Font « Style Layout « JavaScript DHTML






Font face

 
    
<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.Font size
2.div.style.fontFamily="Verdana";
3.div.style.fontSize="2em";
4.div.style.fontSize="larger";
5.div.style.fontWeight="900";