[thelist] Javascript empty array question
Peter-Paul Koch
gassinaumasis at hotmail.com
Mon Jan 28 08:30:01 CST 2002
>I have JavaScript code which sets an array:
>
>var errormessage = new Array()
>
>Later in the script, I want to test if the array is empty or if it has been
>populated. What code would allow me to test this?
if (errormessage.length)
// array has content
ppk
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the thelist
mailing list