Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

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>