'fontColor()' Example : fontColor « Javascript Methods « JavaScript Reference

'fontColor()' Example

    
<html>
<body>
<button onclick="var myS = new String('Sample String'); 
                 document.write('regular string'+myS.fontcolor('blue'));">
                 
change the font color</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'fontColor()' Syntax, Parameters and Note
2.'fontColor()' is applied to