The alert message never activated when at least one of the ip field is blank. There was a message on the bottom left hand side that sid "error on page"
==================================
Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function check_for_blank_in_ip()
{
if ((ip1 <>"" && ip2 <>"" && ip3 <>"" && ip4 =="")) ||
(ip1 <>"" && ip2 <>"" && ip3 =="" && ip4 <>"" ) ||
(ip1 <>"" && ip2 =="" && ip3 <>"" && ip4 <>"" ) ||
(ip1 =="" && ip2 <>"" && ip3 <>"" && ip4 <>"" ) ||
(ip1 <>"" && ip2 <>"" && ip3 =="" && ip4 =="" ) ||
(ip1 =="" && ip2 <>"" && ip3 <>"" && ip4 =="" ))
alert ("All four IP values must be filled in");
}
// -->
</script>
</head>
<body>
<form name="form1" method="post" action="">
<input type=text size=3 maxlength=3 name=ip1 onblur='check_for_blank_in_ip();'><b>.</b>
<input type=text size=3 maxlength=3 name=ip2 onblur='check_for_blank_in_ip();'><b>.</b>
<input type=text size=3 maxlength=3 name=ip3 onblur='check_for_blank_in_ip();'><b>.</b>
<input type=text size=3 maxlength=3 name=ip4 onblur='check_for_blank_in_ip();'> </td>
</form>
</body>
</html>