List of

events

后端 未结 7 725
你的背包
你的背包 2020-12-01 02:45

I\'ve searched the Internet and I cannot find a list of events. Can anyone provide a complete list of events for the

7条回答
  •  旧时难觅i
    2020-12-01 03:32

    You might want to look at "JavaScript HTML DOM Events" for a general overview of events:

    http://www.w3schools.com/jsref/dom_obj_event.asp

    PrimeFaces is built on jQuery, so here's jQuery's "Events" documentation:

    http://api.jquery.com/category/events/

    http://api.jquery.com/category/events/form-events/

    http://api.jquery.com/category/events/keyboard-events/

    http://api.jquery.com/category/events/mouse-events/

    http://api.jquery.com/category/events/browser-events/

    Below, I've listed some of the more common events, with comments about where they can be used (taken from jQuery documentation).

    Mouse Events

    (Any HTML element can receive these events.)

    click

    dblclick

    mousedown

    mousemove

    mouseover

    mouseout

    mouseup

    Keyboard Events

    (These events can be attached to any element, but the event is only sent to the element that has the focus. Focusable elements can vary between browsers, but form elements can always get focus so are reasonable candidates for these event types.)

    keydown

    keypress

    keyup

    Form Events

    blur (In recent browsers, the domain of the event has been extended to include all element types.)

    change (This event is limited to elements,