String fontcolor(): a string in a specified color
<html> <body> <script type="text/javascript"> var txt="JavaScript is great!!" document.write("<p>" + txt.fontcolor() + "</p>") document.write("<p>" + txt.fontcolor('red') + "</p>") document.write("<p>" + txt.fontcolor('blue') + "</p>") document.write("<p>" + txt.fontcolor('green') + "</p>") </script> </body> </html>