<html>
<form name="orderForm">
<input type="checkbox"
name="peppers"
onBlur="pepperAlert()">Peppers<br>
<input type="checkbox"
name="sausage">Sausage<hr>
Step 2:
<input type="button"
value="Order Pizza"
name="orderButton"
onClick="alert('Your pizza has been ordered.')">
</form>
<script language="JavaScript">
<!--
function pepperAlert()
{
if(document.orderForm.peppers.checked == true)
{
alert("peppers.");
}
}
-->
</script>
</html>
|