Here is an example. This is a simple program that /should/ work, everything I've read says it should work, all the examples I looked at say it should work, but the function still isn't getting the value, what am I doing wrong?
<html>
<head>
<title>Personalized Greeting</title>
<script language="JavaScript1.2">
<!-- hide from older browsers
function greet(hello)
{
if(hello == "y")
{
name=prompt("Please enter your name", "Enter your name here");
alert("Welcome "+name+"!");
}
else
{
alert("Welcome guest!");
}
}
// Stop hiding -->
</script>
</head>
<body>
<FORM NAME="Welcome">
Would you like to see a personalized greeting?<br>
<INPUT TYPE=radio NAME="yesOrNo" VALUE="y"
onClick="greet(this.value)">Yes<BR>
<INPUT TYPE=radio NAME="yesOrNo" VLAUE="n"
onClick="greet(this.value)">No<BR>
</FORM>
</body>
</html>