Skip to content
Advertisements

Day: February 22, 2019

DOM Attribute

DOM Attribute

As we create HTML elements in JavaScript, we can create and delete their attributes.

hasAttribute

DOM hasAttribute ()

The hasAttribute () method returns true if the specified attribute exists, otherwise false.