All pastes #963499 Raw Edit

Unnamed

public text v1 · immutable
#963499 ·published 2008-03-30 16:51 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>challengeform.html</title>
<script language="JavaScript" type="text/javascript">
function checkBlank(field)
{
	if (field.value="" ) 
	{
	// insert code here 
	alert("You must enter a phone number.");
	field.focus();
	return false;
	}
	else
		return true;
}
</script>
</head>
<body>
<p>Please enter a phone number.</p>
<!-- Here's the code to access the form validation: -->
<form action="" onsubmit="return checkBlank(this.phone)">
Phone: <input type="text" name="phone" id="phone" />
<input type="submit" value="Submit" />
</form><form>
</form></body>
</html>




and than this one, its supposed 2 give u an alert message when you dont enter a phone number but nothing happens