<form name="forma"> <input type="text" /> </form> <script type="text/javascript"> alert(document.getElementsByName('forma')[0].elements[0].tagName.toLowerCase()); </script>