Referencing DOM objects directly by their IDs is automatically enabled – is it a good practice?
I was today years old when I learned that every HTML element added to the DOM and given an id
is automatically added to the window
object using the name provided in the id
.