Pavanne
Joined: 24 Sep 2006 Posts: 10
|
Posted: Thu Sep 28, 2006 1:01 pm Post subject: Help!!!! |
|
|
Before I go mad with frustration, can anybody please tell me why the javascript function in the following HTML script does not work?
<html>
<head>
<title>Function Calling</title>
<script language="javascript" type="text/javascript">
function saySomething(message) {
alert(message)
}
</script>
</head>
<body>
<h2>Animal Sounds</h2>
<hr/>
<form action ="#">
<input type="button" value="Cow" onclick="saySomething(moo)" />
<input type="button" value="Sheep" onclick="saySomething(Baa)" />
<input type="button" value="Dog" onclick="saySomething(Woof)" />
<input type="button" value="Duck" onclick="saySomething(Quack)" />
<input type="button" value="Cat" onclick="saySomething(meow)" />
</form>
</body>
</html> |
|