Node Operation JavaScript DHTML




function function1() {
    var m = document.getElementsByTagName("P");
    alert(m.length); 
} 

       value="Get the number of p elements in this page" 
       onClick="function1();">