{"json_modified": "2016-10-09T22:59:15.911617", "uuid": "5db5d67d-8673-4245-9b4c-a6df8179db7a", "title": "Detecting when to notify users", "url": "/en-US/docs/Web/Apps/Fundamentals/User_notifications/Detecting_when_to_notify_users", "tags": ["Notifications", "Guide", "events", "alarm", "Vibration", "Events"], "translations": [{"uuid": "0d00f76d-6ab6-412a-988c-4da5466b4dfc", "title": "Detecting when to notify users", "url": "/fr/docs/Web/Apps/Build/User_notifications/Detecting_when_to_notify_users", "tags": ["Notifications", "Guide", "alarme", "\u00e9v\u00e8nements", "Vibreur"], "summary": "Les \u00e9v\u00e8nements sont un moyen standard, dans le d\u00e9veloppement, de r\u00e9pondre aux divers \u00e9v\u00e8nements qui se produisent dans l'application. Un gestionnaire d'\u00e9v\u00e8nement peut \u00eatre attach\u00e9 \u00e0 l'objet pour que quand une occurence de cet \u00e9v\u00e8nement est detect\u00e9, nous puissions r\u00e9pondre \u00e0 cet \u00e9v\u00e8nement par un certain code. Certains \u00e9v\u00e9nements ont toujours \u00e9t\u00e9 l\u00e0, et peuvent \u00eatre consid\u00e9r\u00e9s comme des vieux classiques. Par exemple, un simple onclick va permettre de lancer la fonction quand le bouton sera press\u00e9:", "localization_tags": ["inprogress"], "locale": "fr", "last_edit": "2016-10-09T22:59:11", "review_tags": []}], "modified": "2016-02-29T03:32:41", "label": "Detecting when to notify users", "localization_tags": [], "locale": "en-US", "id": 83387, "last_edit": "2016-02-29T03:32:11", "summary": "Events are the standard programmatic way in which we respond to the various happenings in an application. Event handlers can be attached to objects so that when an occurrence of an event is detected, we can respond to that event with some kind of code. Some events have been around forever, and can be regarded as old classics. For example, a simple onclick handler to run a function when a button is pressed:", "sections": [{"id": "A_series_of_fortunate_events", "title": "A series of fortunate events"}, {"id": "Responding_to_other_conditions_in_your_app", "title": "Responding to other conditions in your app"}], "slug": "Web/Apps/Fundamentals/User_notifications/Detecting_when_to_notify_users", "review_tags": ["technical"]}