<html>
<head>
<title>Desc 395 Assignment 3</title>
<script language = "JavaScript">
function confirmInfo () {
if document.log_in.StudentName.value == " ") {
window.alert("You must fill in your full name");
return false;
}
else if document.log_in.StudentNumber.value = = " ") {
window.alert("You must fill in your student number");
return false;
}
window.alert("Your information has been processed");
return true;
}
</head>
</script>
<body>
<form name = "log_in" onSubmit= "return confirmInfo();">
<p> Student Name: <input type = "text" Name="StudentName" size=40></p>
<p> Student Number: <input type = "text" Name="StudentNumber" size=40></p>
<p> <input type="submit" value ="log in"> <input type="reset" value ="reset">
</form>
</body>
</html>