470,648 Members | 1,672 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

Where is the error in this simple script?

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

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

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

Thanks,

Keiron
Jul 20 '05 #1
1 1572
Keiron Waites wrote on 29 nov 2003 in comp.lang.javascript:
<script language="JavaScript" type="text/javascript">
<!--
function joinDesc(desc) {
var descs = new array("Your forename. Maximum 50
characters.");
}
// -->
</script>

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

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


Array, not array.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by ian justice | last post: by
18 posts views Thread by ian justice | last post: by
25 posts views Thread by Mark | last post: by
4 posts views Thread by Ekkehard Preis | last post: by
5 posts views Thread by DaFallus | last post: by
8 posts views Thread by jmDesktop | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.