<html>
<head>
<script language="javascript">
function check(aForm){
if(aForm.testText.value==""){
alert("Text Alanı Boş");
return false;
}else{
return true;
}
}
</script>
</head>
<body>
<form action="test.jsp" name="testform" onSubmit="return check(this)">
<input type="text" name="testText" size="10"></input>
<input type="submit" value="submit"></input>
</form>
</body>
</html>
Dosyayı İndir