getAttribute() works with any attributes, like href from a elements.

Make sure to pick "a", followed by "href".