i suck at js, fix this IE problem! one line

Discussion in 'JavaScript' started by klown, Nov 24, 2006.

  1. #1
    Here is the line..

    number=anumber*othernumber;
    Code (markup):
    it works fine in FF but not in IE

    Everything else works except this, and the function is kind of useless without combining the two numbers. Any help?
     
    klown, Nov 24, 2006 IP
  2. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you might need to add "var" to it:
    
    var number=anumber*othernumber;
    
    Code (markup):
     
    lbalance, Nov 24, 2006 IP
    klown likes this.