By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,600 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,600 IT Pros & Developers. It's quick & easy.

Where is the error in this simple script?

P: n/a
<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
Share this Question
Share on Google+
1 Reply


P: n/a
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.