String fontcolor() : String : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » String »

 

String fontcolor()




<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>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» String