Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Other Programming Languages
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 29th, 2008, 06:18 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Datalist Style in IE7 and Firefox dgatlin ASP.NET 2.0 Basics 2 April 9th, 2008 08:34 PM
CSS style issue ok in Firefox but not in IE6 socoolbrewster CSS Cascading Style Sheets 1 September 22nd, 2006 10:01 AM
CMS doesn't appear to work with Firefox 1.5 abel714 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 18th, 2006 10:45 AM
Why does this work in Firefox but not in IE???? Ov1 Javascript 2 August 11th, 2006 05:47 AM
onMouseOver does not work in FireFox crmpicco Javascript 23 November 9th, 2005 11:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.