Modifying Element Attributes
Learn how to add, remove, and view element attributes using JavaScript.
Element.getAttributeNames()
Use the Element.getAttributeNames()
function to get an array containing the names of the HTML element’s attributes.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy