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





'fgColor' Example

    
<html>
<body>
Sample Text<br>
<button onclick="document.fgColor='red';">Red</button>
<button onclick="document.fgColor='blue';">Blue</button>
</body>
</html>

    
      
      










Related examples in the same category

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