Don't Click Function
Don't Click Function
<html>
<head>
<title>Don't Click Function</title>
<script>
function sayOuch(){
// by Ryan Te
// 10/25/07
// Dont click funtion
// demonstrates use of functions
document.bgColor = "red";
alert("ouch!!");
document.bgColor = "white";
} // end function
</script>
</head>
<body>
<center>
<h1>Don't Click Function<br></h1>
<hr>
<form name = myForm>
<input type = button
value = "really, don't click me."
onClick = sayOuch()>
</form>
</center>
</body>
</html>