Thanks for the response but, alas, it doesn't solve the problem. I'm using an external script that may or may not contain arrays. So the array cannot be pre-declared. In Perl this is done using 'exists' and I was hoping that there was something similar in Javascript. I read though the documentation but found nothing. I do have another way to solve the problem (by creating an array of arrays) but I was trying to do it this way.
dabush: What's TY. I noticed another recent post that was titled TY. I think it was a response to another thread that I had responded to.
@AdamBrillMar 24.2003 — #Something made me think that is what you meant... ? Anyway, this is the only way that I know of doing that:window.onerror=go; if(test){ alert("test2"); } function go(){ return true; } It just captures the errors... The problem with that is it captures all errors, not just that one, so I don't know if it will work or not...