Accessing Element IDs in DOM as window/global variables

added by JavaScript Kicks
3/13/2019 8:27:52 AM

455 Views

During my early web development days, element IDs was one of the first things I learned on how to manipulate elements from JS land. With reference to elements by their IDs So many to think about const so_many = document.getElemntByID('so_many') we can: 1: change the inner html of the element (innerHTML) So many to think about const so_many = document.getElemntByID('so_many') so_many.innerHTML = "I'm flying without wings" 2.


0 comments