Mega Code Archive

 
Categories / JavaScript DHTML / Style Layout
 

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>