Anyone know why this does not work?????????????
<HTML>
<TITLE>
Example of passing parameters
// If it works, it should display "I had Creme Brulet for lunch. It was delicious".
</TITLE>
<BODY>
<CENTER>
<FORM>
<BR>
<BR>
<INPUT TYPE=BUTTON Value="Click here if you want to find out what I had for lunch?" onClick="MyLunch(Creme Brulet, delicious)">
</FORM>
</CENTER>
</BODY>
<SCRIPT LANGUAGE=JavaScript>
function MyLunch(food, rating)
{
window.alert("I had" + food + "for lunch. It was" + rating);
}
</SCRIPT>
</HTML>
<HTML>
<TITLE>
Example of passing parameters
// If it works, it should display "I had Creme Brulet for lunch. It was delicious".
</TITLE>
<BODY>
<CENTER>
<FORM>
<BR>
<BR>
<INPUT TYPE=BUTTON Value="Click here if you want to find out what I had for lunch?" onClick="MyLunch(Creme Brulet, delicious)">
</FORM>
</CENTER>
</BODY>
<SCRIPT LANGUAGE=JavaScript>
function MyLunch(food, rating)
{
window.alert("I had" + food + "for lunch. It was" + rating);
}
</SCRIPT>
</HTML>