Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2004
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts

    function problem

    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>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You spelted function wrong...

    ....Willy

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    dope lmao ty

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts
    And you don't have the opening <body> tag.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •