...

View Full Version : function problem



MitaDC
09-03-2004, 12:20 AM
Alright I am sure this is really easy but I am just learning, this won't work in Firefox or IE so I would like to know what I did wrong in this script so that I can not do it again lol... TY


<html>
<head>
<script>
<!--
fucntion alertUser() {
alert("Ouch!");
}
//-->
</script>
</head>
Here is some body text
<form>
<input type="text" name="entry">
<input type="button" name="oneButton" value="Press Me!"
onclick="alertUser()">
</form>
</body>
</html>

Willy Duitt
09-03-2004, 12:24 AM
You spelted function wrong... :)

....Willy

MitaDC
09-03-2004, 12:25 AM
dope lmao ty

glenngv
09-03-2004, 12:08 PM
And you don't have the opening <body> tag.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum