Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Help!!!!



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
Pavanne



Joined: 24 Sep 2006
Posts: 10

PostPosted: Thu Sep 28, 2006 1:01 pm    Post subject: Help!!!! Reply with quote

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>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap