Script Activation

<SCRIPT LANGUAGE="javascript">
document.write("<FONT COLOR='RED'>This Is Red Text</FONT>")
</SCRIPT>

The displayed result:


So did JavaScript turn the text red? No. The HTML did that. What JavaScript did was write the code to the page, where it displayed as red text. JavaScript was simply the messenger.

Back Table of Contents Next