Where is the error in this simple script?

K

Keiron Waites

<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
 
E

Evertjan.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top