Regarding javascript

Discussion in 'JavaScript' started by SandeepG14, Sep 2, 2012.

  1. #1
    Hi all,am writing this line of code in my javascript value = refTab.rows.cells[3].innerHTML;
    then am getting the following errorType error:refTab.rows is undefinedActually am getting null into this bcoz i dnt have any rows at that point but in next line of code am handling it but before handling only am getting error.Can any1 please tell me a solution..........

     
    Last edited: Sep 2, 2012
    SandeepG14, Sep 2, 2012 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    How are you handling the error. Are you using try-catch syntax?
     
    Unni krishnan, Sep 12, 2012 IP