'fgColor' Example : fgColor « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- fgColor
'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