Frames and toLowerCase() JavaScript example
Go to URL of the upper frame file.
Then you can view the source and see the toLowerCase() and
toUpperCase() and length and substring() methods illustrated.
View menu, Source command to be able to see the rest of the JavaScript
code for top3.html, after you link to it.
function checkAnswer()
{
answer1 = document.myForm.quest1.value.toLowerCase();
if (answer1 == "love") // Could have answered Love, LoVe, LOVE, or loVE
{
m = "! That is correct!";
}
else
{
m = ". Sorry, that is wrong. :-(";
}
parent.message.document.write("H2" + answer1 + m + "H2");
parent.message.document.close();
}