style.color does not work in firefox
Hi all,
The following code runs fine on internet explorer but not in firefox.
I figured out that elm[i].style.color is not working, there's no error
displayed either. Will anybody help me find the correct code for firefox?
Thanks
var elm = document.getElementsByTagName("a");
//alert(elm.length);
for(var i=0;i<elm.length;i++)
{
if(elm[i].style.color=="saddlebrown")
alert(elm[i].style.color);
}
BaburMan
__________________
BaburMan
|