Follow Us On Follow us on Facebook Follow us on Twitter Watch us on YouTube
Results 1 to 2 of 2
  1. #1
    amit82cse's Avatar
    amit82cse is offline Silent observeR
    Join Date
    May 2005
    Redmond, WA

    JavaScript Coders : IE vs FireFox

    If you are developing JavaScript code and you want it to work in all browsers e.g. IE, FireFox, pay attention to following details:

    How FireFox differs from IE

    1. no outerHTML in FireFox

    2. width should be "100px" and not "100 px" in FireFox <- notice a space between number and unit

    3. Instead of cursor=hand use cursor=pointer in FireFox

    4. In FireFox style.background returns string literal describing 5 to 6 properties. If you are just interested in color then use backgroundColor property

    5. In FireFox backgroundColor always return rgb(a, b, c) format (note the space after ,) and in IE you can set color using this object but it returns rgb(a,b,c) (note no space after ,)

    6. innerText does not work in FireFox instead use textContent

  2. #2
    alpha1's Avatar
    alpha1 is offline I BLUES!
    Join Date
    Dec 2005
    Good info.
    Though, I dont do JavaScript anymore.
    You donít get what you deserve, you get what you negotiate.



Similar Threads

  1. Let's Talk Javascript!!
    By g0g0l in forum Computer Forum
    Replies: 4
    Last Post: 03-12-2008, 05:24 PM
  2. Firefox 2.0 Vs. IE 7
    By alpha1 in forum Computer Forum
    Replies: 44
    Last Post: 02-21-2007, 05:28 PM
  3. FireFox Vs IE
    By amit82cse in forum Computer Forum
    Replies: 34
    Last Post: 07-01-2006, 01:15 AM
  4. !!try firefox!!
    By rahul_fly in forum Computer Forum
    Replies: 3
    Last Post: 02-25-2006, 12:37 PM
  5. Firefox 1.0.4 now available
    By lord_neo in forum Computer Forum
    Replies: 4
    Last Post: 05-14-2005, 10:59 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO