baburman
January 29th, 2008, 04:33 AM
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 a lot.
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);
}
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 a lot.
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);
}