[CODE]
var test = [
[],
[],
[],
];
alert(test.length);
The above code simply shows me the length of the array test.
When I run this in IE, I get 4.
When I run this in Firefox, I get 3.
WHY!!!
I admit the code seems a little unusual and arbitrary, but its the setup of a much more complicated multi-dimensional array for a complex menu code which I did not write and thus I have little choice of the input for the menu. Again for this more complicated array the two browsers gives me different lengths.
I have seen many browser differences before, some seemingly absurd – but this takes the biscuit! How can an array be both 3 and 4 in length!
Any help would be much appreciated, so I can finish my work to make my site fully cross-browser compliant.