Hi, How do I access a tag's ID with the GetElmentBy method?

Shouldn't this: "document.getElementsByTagName('div').id;"

work?