title: Java Script Errors in IE Vs FireFox?
body: <p>I use the following script for get the values from HTML Table.If I use  <strong>innerText</strong> ,It will work on IE and Chrome Fine.But FireFox show the <strong>Error: row.cells[0].innerText is undefined Source</strong>.If I use <strong>textContent</strong> It will work Fine in Chrome and FireFox.But IE Shows the Following Error <strong>cells.0.textContent' is null or not an object</strong>.How to change this script Work on <strong>IE,Chrome,FireFox</strong> without Error? I use either c= row.cells[0].innerText.strip();<strong>or</strong> c=row.cells[0].textContent.strip();</p>
  
  <pre><code>        function a()
          {
  
              var table = getServerObject("b");
              var row,c;
              for (var i = 2; i &lt; table.rows.length - 1; i++)
              {
                  row = table.rows[i]; 
                  if(row.cells.length==1)continue;
                  c= row.cells[0].innerText.strip(); //It was work in chrome and IE (or)
                  c=row.cells[0].textContent.strip();//It was work in chrome and FF
                  if(c==0)
                 {
                  //Something
                 }
  
              }
          }
  </code></pre>