我開始體驗Javascript的神話般的世界,我正在用一個帶有一個javascript函數的html文件製作一個盒子,事實是該警報不會顯示進入文本字段的內容,我做錯了什麼?,這是我的代碼。使用javascript函數的html文件中的錯誤
<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>