Where is the error in this simple script?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keiron Waites

    Where is the error in this simple script?

    <script language="JavaS cript" type="text/javascript">
    <!--
    function joinDesc(desc) {
    var descs = new array("Your forename. Maximum 50
    characters.");
    }
    // -->
    </script>

    <input type="text" name="forename" value=""
    onmouseover="jo inDesc(0);">

    I get the error "Error: array is undefined on line 11".

    Thanks,

    Keiron


  • Evertjan.

    #2
    Re: Where is the error in this simple script?

    Keiron Waites wrote on 29 nov 2003 in comp.lang.javas cript:
    [color=blue]
    > <script language="JavaS cript" type="text/javascript">
    > <!--
    > function joinDesc(desc) {
    > var descs = new array("Your forename. Maximum 50
    > characters.");
    > }
    > // -->
    > </script>
    >
    > <input type="text" name="forename" value=""
    > onmouseover="jo inDesc(0);">
    >
    > I get the error "Error: array is undefined on line 11".
    >[/color]

    Array, not array.



    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...