Skip to content
Advertisements

Category: javascript

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.