get the tag name of object returned by getElementsByName

Viewed 26528

so suppose I call document.getElementsByName("title"); in javascript

and I want to know the type of the tag of the element that is returned by that function, for instance, to see if it's a meta tag or a div tag or a span tag, etc

how would I go about doing this?

3 Answers
Related