Grazie badaze per aver risposto.
Ho inserito quanto mi ha detto , ma il risultato � lo stesso!
codice:<script type="text/javascript"> function countpara(){ var totalpara = document.getElementsByName("primo").lenght; alert("total td tags are: "+totalpara); } </script> <table> <td name="primo" value="abcdefg">This is a pragraph</td> <td>Here we are going to count total number of paragraphs by getElementByTagName() method.</td> <td>Let's see the simple example</td><tr></tr> </table> <button onclick="countpara()">count paragraph</button>


Rispondi quotando