getElementAttribute function

Get the value of an element's attribute.