I am trying to control if text is entered here is my code and it does not work i couldnt find whats wrong
<html>
<head>
<script type="text/javascript">
function CheckInfos()
{
var x=document.forms("name").value;
if(x==null)
{
alert("adınızı kontrol ediniz");
}
}
</script>
</head>
<body>
<input type="text" id="name" />
<input type="button" value="test" onclick="CheckInfos()"/>
</body>