Assignment #1 Answer:This: ...was created by this:
<SCRIPT type="text/javascript">
document.write
("<FONT COLOR='RED'>This Is Red Text</FONT><BR>")
document.write
("<FONT COLOR='BLUE'>This Is Blue Text</FONT>")
</SCRIPT>
The effect was achieved by adding a second document.write line to the script and altering the HTML text inside the instance. I also added a <BR> command at the end of the first instance in order to get these on two different lines. Did you get it? Close this window to return to JavaScript Primer #1 |