Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
DOM event
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== XUL events === In addition to the common (W3C) events, Mozilla defined a set of events that work only with [[XUL]] elements.{{citation needed|date=April 2017}} {| class="wikitable" ! Category ! Type ! Attribute ! Description ! Bubbles ! Cancelable |- | rowspan=6 | Mouse | DOMMouseScroll | DOMMouseScroll | Fires when the mouse wheel is moved, causing the content to scroll. | {{Yes}} | {{Yes}} |- | dragdrop | ondragdrop | Fires when the user releases the mouse button to [[Drag and drop|drop an object being dragged]]. | {{No}} | {{No}} |- | dragenter | ondragenter | Fires when the mouse pointer first moves over an element during a drag. It is similar to the mouseover event but occurs while dragging. | {{No}} | {{No}} |- | dragexit | ondragexit | Fires when the mouse pointer moves away from an element during a drag. It is also called after a drop on an element. It is similar to the mouseout event but occurs during a drag. | {{No}} | {{No}} |- | draggesture | ondraggesture | Fires when the user starts dragging the element, usually by holding down the mouse button and moving the mouse. | {{No}} | {{No}} |- | dragover | ondragover | Related to the mousemove event, this event is fired while something is being dragged over an element. | {{No}} | {{No}} |- | rowspan=5 | Input | CheckboxStateChange | | Fires when a checkbox is checked or unchecked, either by the user or a script. | {{No}} | {{No}} |- | RadioStateChange | | Fires when a radio button is selected, either by the user or a script. | {{No}} | {{No}} |- | close | onclose | Fires when a request has been made to close the window. | {{No}} | {{Yes}} |- | command | oncommand | Similar to W3C DOMActivate event. Fires when an element is activated, for instance, through a mouse click or a keypress. | {{No}} | {{No}} |- | input | oninput | Fires when a user enters text in a textbox. | {{Yes}} | {{No}} |- | rowspan=10 | User interface | DOMMenuItemActive | DOMMenuItemActive | Fires when a menu or menuitem is [[Mouseover|hovered over]], or highlighted. | {{Yes}} | {{No}} |- | DOMMenuItemInactive | DOMMenuItemInactive | Fires when a menu or menuitem is no longer being hovered over, or highlighted. | {{Yes}} | {{No}} |- | contextmenu | oncontextmenu | Fires when the user requests to open the context menu for the element. The action to do this varies by platform, but it will typically be a right click. | {{No}} | {{Yes}} |- | overflow | onoverflow | Fires a box or other layout element when there is not enough space to display it at full size. | {{No}} | {{No}} |- | overflowchanged | onoverflowchanged | Fires when the overflow state changes. | {{No}} | {{No}} |- | underflow | onunderflow | Fires to an element when there becomes enough space to display it at full size. | {{No}} | {{No}} |- | popuphidden | onpopuphidden | Fires to a popup after it has been hidden. | {{No}} | {{No}} |- | popuphiding | onpopuphiding | Fires to a popup when it is about to be hidden. | {{No}} | {{No}} |- | popupshowing | onpopupshowing | Fires to a popup just before it is popped open. | {{No}} | {{Yes}} |- | popupshown | onpopupshown | Fires to a popup after it has been opened, much like the onload event is sent to a window when it is opened. | {{No}} | {{No}} |- | rowspan=2 | Command | broadcast | onbroadcast | Placed on an observer. The broadcast event is sent when the attributes of the broadcaster being listened to are changed. | {{No}} | {{No}} |- | commandupdate | oncommandupdate | Fires when a command update occurs. | {{No}} | {{No}} |- |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)