
|
<SCRIPT> var myColor, mySentence; // making sure that one of the
appropriate colors is entered // if the user
"cancels out" bring back the prompt until he or she enters
something // in order to
make a comparison in the above while() check mySentence = prompt("Enter a sentence", "Let's see what happens!"); // if the user "cancels out"
the sentence make "Let's see what happens!" the default
sentence document.write(mySentence.fontcolor(myColor).bold()); </SCRIPT> |