Good Website Inspector

making the web better


Rule: Avoid static event handlers

Static and in html tags written event handlers should be avoided and indicates a minor knowledge in modern web technologies.

Event handler should be set dynamicaly by javascripts because you have more control in timing and maintenance of global used elements.

Another advantage is the reduced byte size an a better caching possibility of the html document.

Bad event handler attributes are:

oncopy, oncut, onpaste, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onresize, onscroll

Der Good Website Inspector wurde von Hubert Burda Media entwickelt.
Autor: Stefan Seifarth, Media Innovation Lab GmbH, Hubert Burda Media, Impressum & Datenschutz