<HTML>
<head>
<script language="javascript">
function check(){
if(document.forms[0].elements[0].value==""){
alert("Text Alanı Boş");
return false;
}else{
alert("Form Bilgisi Gönderiliyor");
return true;
}
}
</script>
</head>
<body>
<form action="test.jsp" name="test" onSubmit="return check()">
<input type="text" name="testField"></input>
<input type="submit" value="submit"></input>
</form>
</body>
</HTML>
Dosyayı İndir