Document.getElementsByName()
JavaScript’s Document.getElementsByName() method returns a live NodeList containing all the elements whose name attribute matches the specified string.
JavaScript’s Document.getElementsByName() method returns a live NodeList containing all the elements whose name attribute matches the specified string.
JavaScript’s Document.getElementsByClassName() method returns a live array-like object containing all the elements that have all the specified class names.
JavaScript’s Document.getElementById() method returns the element whose id attribute matches the specified string or null if no id attribute matches the string.
JavaScript’s Document.querySelectorAll() method returns a non-live NodeList containing all the elements that match any of the specified CSS selectors.
JavaScript’s Document.querySelector() method returns the first element that matches any of the specified CSS selectors or null if no element matches the selectors.
JavaScript’s Document.createAttribute() method creates and returns a new attribute node that implements the Attr interface.
JavaScript’s Document.prepend() method inserts a set of Node or string objects before the first child of the Document.
JavaScript’s Document.append() method inserts a set of Node or string objects after the last child of the Document.
JavaScript’s Element.replaceWith() method replaces the Element with a set of Node or string objects.
JavaScript’s Element.matches() method returns a Boolean value indicating whether the Element would be selected by any of the specified CSS selectors.
The JavaScript Guide is your companion to learning JavaScript programming in a hands-on manner.