DEV Community

Discussion on: Web components with vanilla JavaScript

Collapse
 
dannyengelman profile image
Danny Engelman

One more thing that helps: inline Event listener is what you create in HTML:

<span onmouseover="functioncall"></span>

Thus span.onmouseover = (evt) => functioncall ...

overwrites (or sets!) the HTML declared Event