"OzThor" <ro*****@ncable.net.au> writes:
in javascript, is there a way to test if an array is undefined????
If it's undefined, then it isn't an array :)
eg...
for (var x=0; x<10; x++){
if test_array[x] is undefined then x++
document.write(test_array[x])
Ah, you want to know whether the array element is undefined.
for (var i=0;i<10;i++) {
if (typeof test_array[i] != "undefined") {
document.write(test_array[i]);
}
}
Good luck
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'