js_event_handler_attribute
An on…= attribute is assigned by hand, like element.setAttribute("onclick", …).
- Severity: Error: it blocks publishing the version.
- Where: script.js
How to fix it
Section titled “How to fix it”Use addEventListener.
An on…= attribute is assigned by hand, like element.setAttribute("onclick", …).
Use addEventListener.