c10frontend
c10frontend
Mouse Events
• click: Fired when an element is clicked.
• dblclick: Fired when an element is double-clicked.
• mousedown: Fired when the mouse button is pressed down.
• mouseup: Fired when the mouse button is released.
• mousemove: Fired when the mouse is moved over an element.
• mouseenter: Fired when the mouse enters an element (does not bubble).
• mouseleave: Fired when the mouse leaves an element (does not bubble).
• mouseover: Fired when the mouse moves over an element or its child.
• mouseout: Fired when the mouse moves out of an element or its child.
• contextmenu: Fired when the right mouse button is clicked (to open a context menu).
Keyboard Events
• keydown: Fired when a key is pressed down.
• keyup: Fired when a key is released.
• keypress (deprecated): Similar to 'keydown', but does not detect all keys (e.g., arrow
keys).
Form Events
• submit: Fired when a form is submitted.
• change: Fired when the value of an input, select, or textarea changes.
• input: Fired when the value of an input element is modified.
• focus (does not bubble): Fired when an element gains focus.
• blur (does not bubble): Fired when an element loses focus.
• reset: Fired when a form is reset.
• select: Fired when text is selected in an input or textarea.
Clipboard Events
• copy: Fired when the user copies content.
• cut: Fired when the user cuts content.
• paste: Fired when the user pastes content.
Media Events
• play: Fired when media playback starts.
• pause: Fired when media playback is paused.
• ended: Fired when media playback ends.
• volumechange: Fired when the volume changes.
• timeupdate: Fired when the media playback position changes.
• seeked: Fired when a user completes seeking (jumping to a new position).
• seeking: Fired when a user starts seeking.
Animation Events
• animationstart: Fired when a CSS animation starts.
• animationend: Fired when a CSS animation ends.
• animationiteration: Fired when a CSS animation completes an iteration.
Transition Events
• transitionstart: Fired when a CSS transition starts.
• transitionend: Fired when a CSS transition ends.
• transitioncancel: Fired when a CSS transition is canceled.
Miscellaneous Events
• error: Fired when an error occurs (e.g., in loading resources like images or scripts).
• abort: Fired when a resource load is aborted (e.g., image loading canceled).
• wheel: Fired when the user scrolls using a mouse wheel.
• pointerdown: Fired when a pointer (mouse, pen, or touch) makes contact.
• pointerup: Fired when a pointer is lifted.
• pointermove: Fired when a pointer moves.
• pointerenter: Fired when a pointer enters an element.
• pointerleave: Fired when a pointer leaves an element.
Custom Events
• Custom events: Custom events can be created using the CustomEvent constructor.