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!
{{Short description|Signal for Document Object Model}} {{multiple issues| {{how-to|date=July 2018}} {{technical|date=July 2018}} }} '''DOM (Document Object Model) Events''' are a signal that something has occurred, or is occurring, and can be triggered by user interactions or by the browser.<ref>{{Cite web|title=DOM Standard|url=https://dom.spec.whatwg.org/#action-versus-occurance|access-date=2021-05-25|website=dom.spec.whatwg.org}}</ref> [[Client-side]] scripting languages like [[JavaScript]], [[JScript]], [[VBScript]], and [[Java (programming language)|Java]] can register various [[Event (computing)#Event handler|event handlers]] or [[Event (computing)|listeners]] on the element nodes inside a [[Document Object Model|DOM]] tree, such as in [[HTML]], [[XHTML]], [[XUL]], and [[Scalable Vector Graphics|SVG]] documents. Examples of DOM Events: * When a user clicks the mouse * When a web page has loaded * When an image has been loaded * When the mouse moves over an element * When an input field is changed * When an HTML form is submitted * When a user presses a key<ref>{{Cite web|url=https://www.w3schools.com/js/js_htmldom_events.asp|title=JavaScript DOM Events|website=www.w3schools.com|access-date=2019-08-03}}</ref> Historically, like DOM, the event models used by various [[web browser]]s had some significant differences which caused compatibility problems. To combat this, the event model was standardized by the [[World Wide Web Consortium]] (W3C) in DOM Level 2.
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)