{"json_modified": "2016-07-09T04:03:34.554589", "uuid": "9ac4c33c-62cb-4f8f-b31f-4effc14b7387", "title": "DOM on-event handlers", "url": "/en-US/docs/Web/Guide/Events/Event_handlers", "tags": ["NeedsBeginnerUpdate", "DOM", "NeedsUpdate", "beginner", "Beginner"], "translations": [{"uuid": "5e41059c-05c3-4d28-b63e-a50cb1b26397", "title": "DOM \u4e8b\u4ef6\u56de\u8c03", "url": "/zh-CN/docs/Web/Guide/Events/Event_handlers", "tags": [], "summary": "A possible way to get notified of Events of a particular type (such as click) for a given object is to specify the event handler using:", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-05-15T21:56:17", "review_tags": []}], "modified": "2016-07-09T04:03:34", "label": "DOM on-event handlers", "localization_tags": [], "locale": "en-US", "id": 5122, "last_edit": "2016-03-12T14:38:33", "summary": "The Web platform provides several ways to get notified of DOM events.\u00a0 Two common\u00a0styles are: the generalized addEventListener() and a set of specific\u00a0on-event handlers. This page focuses on the details of how the latter work.", "sections": [{"id": "Summary", "title": "Summary"}, {"id": "Registering_on-event_handlers", "title": "Registering "}, {"id": "Non-element_objects", "title": "Non-element objects"}, {"id": "Details", "title": "Details"}, {"id": "The_value_of_HTML_on<...>_attributes_and_corresponding_JavaScript_properties", "title": "The value of HTML on<...> attributes and corresponding\u00a0 JavaScript properties"}, {"id": "Event_handler's_parameters_this_binding_and_the_return_value", "title": "Event handler's parameters, "}, {"id": "When_the_event_handler_is_invoked", "title": "When the event handler is invoked"}, {"id": "Terminology", "title": "Terminology"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_Compatibility", "title": "Browser compatibility"}, {"id": "Event_handler_changes_in_Firefox_9", "title": "Event handler changes in Firefox 9"}, {"id": "Detecting_the_presence_of_event_handler_properties", "title": "Detecting the presence of event handler properties"}, {"id": "Event_handlers_and_prototypes", "title": "Event handlers and prototypes"}], "slug": "Web/Guide/Events/Event_handlers", "review_tags": []}