I have an Element, and I can not figure out how to get the HTMLElement from it.
Element
HTMLElement
For example:
A link>
You're close!
var nodes = document.querySelectorAll('a'); // Returns a NodeList of Elements for (let i = 0; nodes[i]; i++) { // node is your element! var node = nodes[i]; node.style.backgroundColor = "blue"; }