Menu
I have often read that the best design makes the HTML work even if JS is offline.
I can understand that,
but why have JS functions like
elem.addEventListener(click, function) statements?
If the HTML is recommended to have the actions for the onclick defined,
why bother with the JS definitions? Or this just a weak example? ?