Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 498 Bytes
layout title subtitle status ctime
Attributes in DOM
Get, Set and Remove Attributes in the DOM
  • getAttribute() returns the value of a specified attribute on the element
  • setAttribute() Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value
  • removeAttribute() removes an attribute from the specified element
  • hasAttribute()