'color' Example
<html> <body> <script language="JavaScript"> function function1() { document.getElementById("myFont").color = "green"; } function function2() { document.getElementById("myFont").color = "maroon"; } </script> <p> <font face="Verdana" id="myFont"> <b>Sample text.</b> </font> </p> <button onClick="function1();">Make Text Green</button> <button onClick="function2();">Make Text Maroon</button> </body> </html>