Menu
Can anyone tell me what I am not getting? I thought this code would work, but it isn’t. Here is the code:
[COLOR=Red]function Hide() {
myArray = document.getElementsByTagName(“DIV”);
DivArray = myArray.slice(3,-1);
alert (“There are ” + DivArray.length + ” divs.”);
}
I have it being accessed with an “onClick” command. When it is accessed IE gives me an error for “DivArray = myArray.slice(3,-1);” saying, “Object doesn’t support this property or method”. Please help!!!!!!!!!!!! I currently have 7 DIV tags on my page.