Body text Color : Color « Style Layout « JavaScript DHTML






Body text Color

  
    
<html>
<head>
<script language="JavaScript">
    function function1() {
        document.all.myBody.text = "blue";
    }
</script>
</head>
<body id="myBody">
Some text
<input type="button" value="Change to blue" onClick="function1();">
</body>
</html>

    
      
        
    
  








Related examples in the same category

1.Foreground Color Example
2.'color' Example
3.Change text color
4.Change element color
5.div.style.color="#fff";
6.Assign random color to