S
Sunny
Hi I have a div called shape on my page.
When I try to get its length using javascript in IE, everything works
fine.
But When I try it in Firefox it has element has no properties.
Here is the code that I am using.
var shps = document.getElementsByTagName("shape");
lastshp = shps.length
alert ("there are currently: " + lastshp + " shapes")
In IE It returns 2.
But In Firefox it returns 0.
Why what i am doing wrong here.
When I try to get its length using javascript in IE, everything works
fine.
But When I try it in Firefox it has element has no properties.
Here is the code that I am using.
var shps = document.getElementsByTagName("shape");
lastshp = shps.length
alert ("there are currently: " + lastshp + " shapes")
In IE It returns 2.
But In Firefox it returns 0.
Why what i am doing wrong here.