Results 1 to 4 of 4
Thread: IE Mystery with className
Oct 22, 2012, 10:08 #1
- Join Date
- Jan 2010
- 0 Post(s)
- 0 Thread(s)
IE Mystery with className
I have a Web page that runs properly with IE 9 with the following code:
// Check for IE if (isBrowserIE) tempArray[i].setAttribute("className", "red"); else tempArray[i].setAttribute("class", "red");
This would seem to be an impossible scenario. Any ideas?
Incidently, the new page works on IE if I change "className" to "class". But if this is required to make the code work on the new page, then the older page that still has "className" should not work, but it does!
Thanks so much.