What would be the problem with reversing the array of DOM objects got from a command like:
var imagesArr = new Array();
imagesArr = document.getElementById("myDivHolderId").getElementsByTagName("img");
imagesArr.reverse();
When i call the reverse() method, the script stops executing with the error 'imagesArr.reverse is not a function' in Firefox 3 (can be seen in the Error console of the Web developer toolbar).
Why the variable 'imagesArr' isn't seen as an array when calling the reverse() method, but at the same time can be iterated through with a for loop and elements can be accessed like imagesArr[i]?