getAttribute

open external fun getAttribute(qualifiedName: String): String?(source)

The getAttribute() method of the Element interface returns the string value of the specified attribute of the specified element. It returns null if the element doesn't have an attribute with the given name.

MDN Reference