DOM hasAttribute () The hasAttribute () method returns true if the specified attribute exists, otherwise false. 22 February 2019 4