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.
Code: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); }




Reply With Quote