This is my html code the code! But the JS is not working I tried a few things but i cant get the popup window if it less than 2
<script>
function Check(name) {
if (name.length < 2)
alert("פחות משני תווים בשם");
}
</script>
<input
id="Text1"
name="Text1"
type="text"
value="שם פרטי"
onmouseover="value=''"
onclick="Check();"
/>