por favor.
Código Javascript:
Ver original
<html> <head> <script type="text/javascript"> function getElements() { var i=document.getElementsByTagName("input"); alert(i.length); } </script> </head> <body> <input type="text" size="20" /><br /> <input type="text" size="20" /><br /> <input type="text" size="20" /><br /><br /> <input type="button" onclick="getElements()" value="How many input elements?" /> </body> </html>