In the following example IE alert to me the innerHTML of the 1st table row as I expected it would, but Firefox states that row has no properties, any idea what I am doing wrong? note both browser auto inserts a Tbody element in the table
Code:
</html> <head> </head> <body> <table id="_2ndGrid"> <tr> <th>Column1 </th> <th>Column2 </th> <th>Column3 </th> </tr> <tr> <td>1 </td> <td>b </td> <td>00a </td> </tr> <tr> <td>2 </td> <td>a </td> <td>00b </td> </tr> </table> <script> table=document.getElementById("_2ndGrid"); var row=table.firstChild.firstChild; alert(row.innerHTML); </script> </body> </html>
Comment