Give an example of registering an HTML event with a JS function
<button>Try it</button>
//where onclick is the property and the JS function is after the =
Can you list some common html events
onclick
onmouseover
onmouseout
onload
onchange
How else can a function be registered to an element
Directly in an event using a DOM property like
window.onload = (even) => { document.getElementById(“btnl”).addEventListener(“click”, changeText);}