SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: alert problem

  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2002
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    alert problem

    my alert is not working I don't know why??

    Here is my code

    <head>
    <script language="javascirpt">
    <!--

    function ito(){

    window.alert("Hi how are you")

    }

    //-->
    </script>
    </head>
    <body>
    <input type="button" onclick="ito()">

    </body>

    I got an error. Please help me to run this script

    Thanks

  2. #2
    webality...dunno what it means bcp_2005's Avatar
    Join Date
    Jun 2002
    Location
    Huntsville Alabama
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change it to the following:

    <head>
    <script language="javascript">
    <!--

    function ito(){

    window.alert("Hi how are you")

    }

    //-->
    </script>
    </head>
    <body>
    <input type="button" onclick="ito()">

    </body>

    You misspelled 'javascript' in you opening <script> tag.
    [ metabahn ] : changing the course of the web.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2002
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol, you shouldn't have given it away!
    I could have read over that a hundred times....


Bookmarks

Posting Permissions

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