
|
<SCRIPT> var myColor = prompt("Enter Color \(Red/Blue/Green\) :", "blue"); // if the person cancelled the prompt
make "blue" the default color var mySentence = prompt("Enter a sentence", "Let's see what happens!"); // if the person cancelled the prompt
make "Let's see what happens!" the default sentence document.write(mySentence.bold().fontcolor(myColor)); </SCRIPT> |