{"json_modified": "2016-10-10T03:02:40.387426", "uuid": "0585c253-ede1-4ef4-a66e-205a3459821a", "title": "EventTarget.addEventListener()", "url": "/en-US/docs/Web/API/EventTarget/addEventListener", "tags": ["EventTarget", "Reference", "DOM", "API", "Method"], "translations": [{"uuid": "845de937-a7d2-41e0-8f46-ced60e2160cb", "title": "element.addEventListener", "url": "/es/docs/Web/API/EventTarget/addEventListener", "tags": [], "summary": "addEventListener()
Registra un evento a un objetivo en especifico. El ObJeto especifico Puede ser un simple elemento en un archivo, el mismo\u00a0 documento
, una ventana
, o un\u00a0 XMLHttpRequest
.", "localization_tags": [], "locale": "es", "last_edit": "2016-09-30T09:23:32", "review_tags": []}, {"uuid": "44ff72bb-5201-4faf-bff2-68042620e393", "title": "element.addEventListener", "url": "/fr/docs/Web/API/EventTarget/addEventListener", "tags": ["DOM Element Methods", "DOM", "Gecko"], "summary": "addEventListener
permet l'assignation de gestionnaires d'\u00e9v\u00e8nements sur un \u00e9l\u00e9ment cible. La cible d'un \u00e9v\u00e8nement peut \u00eatre un n\u0153ud dans un document, le document lui-m\u00eame, un \u00e9l\u00e9ment window ou un objet XMLHttpRequest.", "localization_tags": [], "locale": "fr", "last_edit": "2014-10-28T07:29:47", "review_tags": []}, {"uuid": "b18ce1ab-f3fe-4420-9c8d-dfd0e7986e17", "title": "element.addEventListener", "url": "/it/docs/Web/API/Element/addEventListener", "tags": [], "summary": "addEventListener()
permette di impostare delle funzioni che verranno chiamate al verificarsi dell'evento specificato, sull'oggetto specificato(target dell'evento).", "localization_tags": [], "locale": "it", "last_edit": "2015-11-21T10:08:25", "review_tags": []}, {"uuid": "50a3907a-6bf5-4ed6-9792-594f119b6d68", "title": "EventTarget.addEventListener", "url": "/ja/docs/Web/API/EventTarget/addEventListener", "tags": ["addEventListener", "DOM", "DOM Reference"], "summary": "addEventListener
\u306f\u3001 1 \u3064\u306e\u30a4\u30d9\u30f3\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u30fc\u3092 1 \u3064\u767b\u9332\u3057\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4e0a\u306e\u5358\u4e00\u306e\u30ce\u30fc\u30c9\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u81ea\u8eab\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3001\u3042\u308b\u3044\u306f\u3001XMLHttpRequest \u3067\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2016-08-01T09:11:42", "review_tags": []}, {"uuid": "f89fe686-d1df-4361-96f5-f35ff378885c", "title": "EventTarget.addEventListener()", "url": "/ko/docs/Web/API/EventTarget/addEventListener", "tags": [], "summary": "EventTarget.addEventListener() \uba54\uc18c\ub4dc\ub294\u00a0
EventTarget
\uc5d0\uc11c \ubd88\ub824\uc9c8 \ud2b9\uc815 \ub9ac\uc2a4\ub108\ub97c \ub4f1\ub85d\ud569\ub2c8\ub2e4.\u00a0\uc774\ubca4\ud2b8\uc758 \ub300\uc0c1\uc740 \ub2e4\ud050\uba3c\ud2b8 \uc548\uc758\u00a0Element
,\u00a0Document
\uc790\uc2e0,\u00a0Window
, \ub610\ub294\u00a0XMLHttpRequest\u00a0\uac19\uc740 \uc774\ubca4\ud2b8\ub97c \uc9c0\uc6d0\ud558\ub294 \uc5b4\ub5a4 \uac1d\uccb4\uc77c \uac83\uc785\ub2c8\ub2e4.
", "localization_tags": [], "locale": "ko", "last_edit": "2016-03-14T20:50:11", "review_tags": ["technical", "editorial"]}, {"uuid": "aee0ba30-9993-468e-9367-2227405471e3", "title": "element.addEventListener", "url": "/pl/docs/Web/API/Element/addEventListener", "tags": ["Dokumentacja_Gecko_DOM", "DOM", "Gecko", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "Metoda addEventListener
pozwala zarejestrowa\u0107 obserwatora zdarze\u0144 dla okre\u015blonego typu zdarzenia na elemencie.", "localization_tags": [], "locale": "pl", "last_edit": "2014-10-23T11:22:43", "review_tags": []}, {"uuid": "58a2b016-5587-497b-87ed-03458fee43cb", "title": "Element.addEventListener()", "url": "/pt-BR/docs/Web/API/Element/addEventListener", "tags": [], "summary": "addEventListener()
registra uma \u00fanica espera de evento em um \u00fanico alvo. O alvo do evento\u00a0pode ser um \u00fanico\u00a0elemento\u00a0em um documento, o\u00a0documento
\u00a0em si, uma janela
, ou um\u00a0XMLHttpRequest
.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2015-02-23T15:25:05", "review_tags": []}, {"uuid": "7ce7979c-ece5-4b74-a1d8-9592c68d37c9", "title": "EventTarget.addEventListener()", "url": "/ru/docs/Web/API/EventTarget/addEventListener", "tags": ["addEventListener", "\u0421\u043e\u0431\u044b\u0442\u0438\u0435", "EventTarget", "\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a", "\u043c\u0435\u0442\u043e\u0434", "\u041c\u0435\u0442\u043e\u0434", "DOM"], "summary": "\u041c\u0435\u0442\u043e\u0434 EventTarget.addEventListener()
\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u00a0EventTarget
.", "localization_tags": [], "locale": "ru", "last_edit": "2016-07-28T01:38:07", "review_tags": ["technical", "editorial"]}, {"uuid": "e7ae0f37-38f8-443d-be2d-a62adbbfbb4d", "title": "EventTarget.addEventListener()", "url": "/zh-CN/docs/Web/API/EventTarget/addEventListener", "tags": ["\u53c2\u8003", "API", "DOM", "Event", "\u65b9\u6cd5"], "summary": "EventTarget.addEventListener()\u00a0\u65b9\u6cd5\u5c06\u6307\u5b9a\u7684\u4e8b\u4ef6\u76d1\u542c\u5668\u6ce8\u518c\u5230 EventTarget
\u00a0\u4e0a\uff0c\u5f53\u8be5\u5bf9\u8c61\u89e6\u53d1\u6307\u5b9a\u7684\u4e8b\u4ef6\u65f6\uff0c\u6307\u5b9a\u7684\u56de\u8c03\u51fd\u6570\u5c31\u4f1a\u88ab\u6267\u884c\u3002 \u4e8b\u4ef6\u76ee\u6807\u53ef\u4ee5\u662f\u4e00\u4e2a\u6587\u6863\u4e0a\u7684\u5143\u7d20\u00a0Document
\u00a0\u672c\u8eab\uff0c\u6216\u8005\u4efb\u4f55\u80fd\u652f\u6301\u4e8b\u4ef6\u7684\u5bf9\u8c61\uff08\u6bd4\u5982\u00a0XMLHttpRequest\uff09\u3002
", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-10-08T00:19:36", "review_tags": []}, {"uuid": "0ecc2b38-f604-47a6-bc56-44f6acdd7585", "title": "EventTarget.addEventListener()", "url": "/zh-TW/docs/Web/API/EventTarget/addEventListener", "tags": ["\u5f85\u7ffb\u8b6f", "DOM", "API"], "summary": "EventTarget.addEventListener()
\u00a0\u65b9\u6cd5\u80fd\u5c07\u6307\u5b9a\u7684\u4e8b\u4ef6\u76e3\u807d\u5668\u8a3b\u518a\u5230 EventTarget
\u5be6\u4f5c\u7269\u4ef6\u4e0a\u3002EventTarget
\u00a0\u53ef\u80fd\u662f Document \u4e2d\u7684 Element
\u7269\u4ef6\u3001Document
\u7269\u4ef6\u672c\u8eab\u3001Window
\u7269\u4ef6\uff0c\u6216\u662f\u5176\u5b83\u652f\u63f4\u4e8b\u4ef6\u7684\u7269\u4ef6\uff08\u5982\uff1aXMLHttpRequest
\uff09\u3002", "localization_tags": ["inprogress"], "locale": "zh-TW", "last_edit": "2016-06-19T06:36:39", "review_tags": []}], "modified": "2016-10-10T03:02:38", "label": "EventTarget.addEventListener()", "localization_tags": [], "locale": "en-US", "id": 2037, "last_edit": "2016-08-30T17:28:47", "summary": "The EventTarget.addEventListener()
method registers the specified listener on the EventTarget
it's called on. The event target may be an Element
in a document, the Document
itself, a Window
, or any other object that supports events (such as XMLHttpRequest
).", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Example", "title": "Example"}, {"id": "Add_a_simple_listener", "title": "Add a simple listener"}, {"id": "HTML_Content", "title": "HTML Content"}, {"id": "JavaScript_Content", "title": "JavaScript Content"}, {"id": "Event_Listener_with_anonymous_function", "title": "Event Listener with anonymous function"}, {"id": "HTML_Content_2", "title": "HTML Content"}, {"id": "JavaScript_Content_2", "title": "JavaScript Content"}, {"id": "Notes", "title": "Notes"}, {"id": "Why_use_addEventListener", "title": "Why use "}, {"id": "Adding_a_listener_during_event_dispatch", "title": "Adding a listener during event dispatch"}, {"id": "Multiple_identical_event_listeners", "title": "Multiple identical event listeners"}, {"id": "The_value_of_this_within_the_handler", "title": "The value of "}, {"id": "Legacy_Internet_Explorer_and_attachEvent", "title": "Legacy Internet Explorer and attachEvent"}, {"id": "Compatibility", "title": "Compatibility"}, {"id": "Older_way_to_register_event_listeners", "title": "Older way to register event listeners"}, {"id": "Memory_issues", "title": "Memory issues"}, {"id": "Improving_scrolling_performance_with_passive_listeners", "title": "Improving scrolling performance with passive listeners"}, {"id": "sect1", "title": "\u00a0"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/EventTarget/addEventListener", "review_tags": []}