Certified HTML5 Developer Learning Resources UI Events

Learning Resources
 

UI Events


The common event attributes are device-dependent and largely tailored for the graphical user interface. The available events are as follows:

    ONCLICK, when the mouse button is clicked on an element;
    ONDBLCLICK, when the mouse button is double-clicked on an element;
    ONMOUSEDOWN, when the mouse button is pressed over an element;
    ONMOUSEUP, when the mouse button is released over an element;
    ONMOUSEOVER, when the mouse is moved onto an element;
    ONMOUSEMOVE, when the mouse is moved while over an element;
    ONMOUSEOUT, when the mouse is moved away from an element;
    ONKEYPRESS, when a key is pressed and released over an element;
    ONKEYDOWN, when a key is pressed down over an element;
    ONKEYUP, when a key is released over an element.

 For Support