I am beginning to experience the fabulous world of Javascript, I am making a html file with a javascript function with a box, the fact is that the alert does not show what goes into the text field, what am I doing wrong ?, this is my code.
<html>
<head>
<script>
function showMe()
{
var nombre= cnombre.value;
alert("You are "+ nombre);
cnombre.value="";
cnombre.focus();
}
</script>
</head>
<body>
Name:<input type ="text" name="cnombre"
size="30">
<input type="button" value="Go"
onClick=showMe();>
</body>
</html>