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? Thanks, Josh