Skip to content

Commit f4c0e82

Browse files
Josh-Cenadipikabh
andauthored
Move Events reference as one article under DOM API (mdn#40443)
* Move Events reference as one article under DOM API * Update files/en-us/web/html/reference/attributes/index.md * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Update files/en-us/web/media/guides/audio_and_video_delivery/index.md * Update index.md Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> * Update index.md Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org> --------- Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
1 parent 90e5b79 commit f4c0e82

File tree

36 files changed

+384
-498
lines changed

36 files changed

+384
-498
lines changed

files/en-us/_redirects.txt

Lines changed: 47 additions & 45 deletions
Large diffs are not rendered by default.

files/en-us/_wikihistory.json

Lines changed: 61 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -29492,6 +29492,67 @@
2949229492
"Dria"
2949329493
]
2949429494
},
29495+
"Web/API/Document_Object_Model/Events": {
29496+
"modified": "2020-08-02T16:56:22.810Z",
29497+
"contributors": [
29498+
"FreshCapsule",
29499+
"Zearin_Galaurum",
29500+
"bartdorsey",
29501+
"jeremykohn",
29502+
"AlexandraDima",
29503+
"alattalatta",
29504+
"mfuji09",
29505+
"wbamberg",
29506+
"estelle",
29507+
"9999472",
29508+
"chrisdavidmills",
29509+
"mfluehr",
29510+
"chharvey",
29511+
"ExE-Boss",
29512+
"karbassi",
29513+
"tuespetre",
29514+
"karlstolley",
29515+
"GuilloOme",
29516+
"Sheppy",
29517+
"JessePotterMusic",
29518+
"WhiteHawk-taka",
29519+
"rosannaberardi",
29520+
"2xblue",
29521+
"HaehnleinMar",
29522+
"gacar",
29523+
"neo1691",
29524+
"shtarbanov",
29525+
"GijsKruitbosch",
29526+
"jpmedley",
29527+
"slimsag",
29528+
"bep",
29529+
"teoli",
29530+
"AFBarstow",
29531+
"fscholz",
29532+
"Flaki",
29533+
"abidalianjum428",
29534+
"Nickolay",
29535+
"emersonveenstra",
29536+
"LoTD",
29537+
"Minat",
29538+
"Penny",
29539+
"jensen",
29540+
"morello",
29541+
"jscape",
29542+
"kohei.yoshino",
29543+
"WP-Makyen",
29544+
"mkretschek",
29545+
"kscarfone",
29546+
"Jeremie",
29547+
"srasku",
29548+
"ethertank",
29549+
"maybe",
29550+
"complynx",
29551+
"louisremi",
29552+
"Pettay",
29553+
"Pomax"
29554+
]
29555+
},
2949529556
"Web/API/Document_Object_Model/Examples": {
2949629557
"modified": "2020-05-26T10:30:16.020Z",
2949729558
"contributors": [
@@ -90055,141 +90116,6 @@
9005590116
"jackarmley"
9005690117
]
9005790118
},
90058-
"Web/Events": {
90059-
"modified": "2020-08-02T16:56:22.810Z",
90060-
"contributors": [
90061-
"FreshCapsule",
90062-
"Zearin_Galaurum",
90063-
"bartdorsey",
90064-
"jeremykohn",
90065-
"AlexandraDima",
90066-
"alattalatta",
90067-
"mfuji09",
90068-
"wbamberg",
90069-
"estelle",
90070-
"9999472",
90071-
"chrisdavidmills",
90072-
"mfluehr",
90073-
"chharvey",
90074-
"ExE-Boss",
90075-
"karbassi",
90076-
"tuespetre",
90077-
"karlstolley",
90078-
"GuilloOme",
90079-
"Sheppy",
90080-
"JessePotterMusic",
90081-
"WhiteHawk-taka",
90082-
"rosannaberardi",
90083-
"2xblue",
90084-
"HaehnleinMar",
90085-
"gacar",
90086-
"neo1691",
90087-
"shtarbanov",
90088-
"GijsKruitbosch",
90089-
"jpmedley",
90090-
"slimsag",
90091-
"bep",
90092-
"teoli",
90093-
"AFBarstow",
90094-
"fscholz",
90095-
"Flaki",
90096-
"abidalianjum428",
90097-
"Nickolay",
90098-
"emersonveenstra",
90099-
"LoTD",
90100-
"Minat",
90101-
"Penny",
90102-
"jensen",
90103-
"morello",
90104-
"jscape",
90105-
"kohei.yoshino",
90106-
"WP-Makyen",
90107-
"mkretschek",
90108-
"kscarfone",
90109-
"Jeremie",
90110-
"srasku",
90111-
"ethertank",
90112-
"maybe",
90113-
"complynx",
90114-
"louisremi",
90115-
"Pettay",
90116-
"Pomax"
90117-
]
90118-
},
90119-
"Web/Events/Creating_and_triggering_events": {
90120-
"modified": "2020-06-30T17:30:47.991Z",
90121-
"contributors": [
90122-
"drklee3",
90123-
"AAlakkad",
90124-
"sunnykgupta",
90125-
"ciffelia",
90126-
"depthdev",
90127-
"yanlee26",
90128-
"fscholz",
90129-
"Tombez",
90130-
"napengam",
90131-
"vp2177",
90132-
"pawlufelice",
90133-
"deebloo",
90134-
"Nickolay",
90135-
"ziyunfei",
90136-
"matajm",
90137-
"swrobel",
90138-
"lukaszzdanikowski",
90139-
"soren121",
90140-
"Andreas-Hjortland",
90141-
"alexilyaev",
90142-
"DiegoYungh",
90143-
"chrisra",
90144-
"ratcliffe_mike",
90145-
"guest0430",
90146-
"mnoorenberghe",
90147-
"Jeremie",
90148-
"Sheppy",
90149-
"diego.perini",
90150-
"cHao",
90151-
"kscarfone",
90152-
"Ms2ger",
90153-
"Brettz9",
90154-
"ebidel",
90155-
"paul.irish",
90156-
"jeremyfifty9",
90157-
"Sertion",
90158-
"Sephr",
90159-
"ernestd",
90160-
"hamishwillee"
90161-
]
90162-
},
90163-
"Web/Events/Event_handlers": {
90164-
"modified": "2020-08-24T04:12:31.453Z",
90165-
"contributors": [
90166-
"mfuji09",
90167-
"EdgarBarrantes",
90168-
"chrisdavidmills",
90169-
"gliesefire",
90170-
"zin445",
90171-
"Nozomi3",
90172-
"Sheppy",
90173-
"HiEv",
90174-
"Tigt",
90175-
"jswisher",
90176-
"nadieenespecial",
90177-
"mvasin",
90178-
"fscholz",
90179-
"Onkar316",
90180-
"wxdude225",
90181-
"DailyAlice",
90182-
"david_ross",
90183-
"rolfedh",
90184-
"Nickolay",
90185-
"pcat",
90186-
"majido",
90187-
"markg",
90188-
"chrisAnderson",
90189-
"Jeremie",
90190-
"Bzbarsky"
90191-
]
90192-
},
9019390119
"Web/Guide/Parsing_and_serializing_XML": {
9019490120
"modified": "2020-09-09T05:19:22.895Z",
9019590121
"contributors": [

files/en-us/learn_web_development/core/scripting/event_bubbling/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ Next up, you'll find a challenge that will test your understanding of the last f
428428

429429
- [domevents.dev](https://domevents.dev/)
430430
- : A useful interactive playground app that enables learning about the behavior of the DOM Event system through exploration.
431-
- [Event reference](/en-US/docs/Web/Events)
432-
- : The main MDN event reference.
431+
- [DOM events](/en-US/docs/Web/API/Document_Object_Model/Events)
432+
- : A comprehensive guide for understanding and handling events.
433433
- [Event order](https://www.quirksmode.org/js/events_order.html)
434434
- : An excellently detailed discussion of capturing and bubbling by Peter-Paul Koch.
435435

files/en-us/learn_web_development/core/scripting/events/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ For example:
4848
- A video is played, paused, or ends.
4949
- An error occurs.
5050

51-
You can gather from this (and from glancing at the MDN [event reference](/en-US/docs/Web/Events)) that there are **a lot** of events that can be fired.
51+
You can gather from this (and from glancing at the [event index](/en-US/docs/Web/API/Document_Object_Model/Events#event_index)) that there are **a lot** of events that can be fired.
5252

5353
To react to an event, you attach an **event listener** to it. This is a code feature that listens out for the event firing. When the event fires, an **event handler** function (referenced by, or contained inside the event listener) is called to respond to the event firing. When such a block of code is set up to run in response to an event, we say we are **registering an event handler**.
5454

files/en-us/learn_web_development/extensions/forms/user_input_methods/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ window.addEventListener("keyup", handleKeyUp, true);
4141
`handleKeyDown` and `handleKeyUp` are functions defining the control logic to be executed when the `keydown` and `keyup` events are fired.
4242

4343
> [!NOTE]
44-
> Have a look at the [Events reference](/en-US/docs/Web/Events) and {{domxref("KeyboardEvent")}} guide to find out more about keyboard events.
44+
> See the [DOM events](/en-US/docs/Web/API/Document_Object_Model/Events) guide and the {{domxref("KeyboardEvent")}} reference to find out more about keyboard events.
4545
4646
### Mouse
4747

48-
You can also capture mouse and other pointer events. The events occurring when the user interacts with a pointing device such as a mouse are represented by the {{domxref("MouseEvent")}} DOM Interface. Common mouse events include [`click`](/en-US/docs/Web/API/Element/click_event), [`dblclick`](/en-US/docs/Web/API/Element/dblclick_event), [`mouseup`](/en-US/docs/Web/API/Element/mouseup_event), and [`mousedown`](/en-US/docs/Web/API/Element/mousedown_event). The list of all events using the Mouse Event Interface is provided in the [Events reference](/en-US/docs/Web/Events).
48+
You can also capture mouse and other pointer events. The events occurring when the user interacts with a pointing device such as a mouse are represented by the {{domxref("MouseEvent")}} DOM Interface. Common mouse events include [`click`](/en-US/docs/Web/API/Element/click_event), [`dblclick`](/en-US/docs/Web/API/Element/dblclick_event), [`mouseup`](/en-US/docs/Web/API/Element/mouseup_event), and [`mousedown`](/en-US/docs/Web/API/Element/mousedown_event). The list of all events using the Mouse Event Interface is provided in the [DOM events](/en-US/docs/Web/API/Document_Object_Model/Events#event_index) guide.
4949

5050
When the input device is a mouse, you can also control user input through the Pointer Lock API and implement Drag & Drop (see below). You can also [use CSS to test for pointer device](/en-US/docs/Learn_web_development/Core/CSS_layout/Media_queries#use_of_pointing_devices) support.
5151

files/en-us/mdn/writing_guidelines/howto/json_structured_data/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ An entry in `GroupData.json` has the following structure:
7272
> [!NOTE]
7373
> The properties of the interfaces listed in `"interfaces"` **must** not be listed there. They are automatically added to the sidebar if the `page-type` key for that page is `web-api-static-property` or `web-api-instance-property`.
7474
- `"events"`
75-
- : This lists events of other interfaces that are part of the API. The values are the _title of the pages_ (that must reside under `Web/Events`)
75+
- : This lists events of other interfaces that are part of the API. The values are the _title of the pages_.
7676
> [!NOTE]
7777
> The events targeting the interfaces listed in `"interfaces"` **must** not be listed there. They are automatically added to the sidebar if the `page-type` key for that page is `web-api-event`.
7878

files/en-us/mdn/writing_guidelines/page_structures/page_types/api_event_subpage_template/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sidebar: mdnsidebar
8484
> For example, [Element: wheel event](/en-US/docs/Web/API/Element/wheel_event) is linked from [`Element` Events](/en-US/docs/Web/API/Element#events).
8585
>
8686
> If the parent object does not have an _Events_ section, then add one.
87-
> If this is a new "class" of event, then you should add a link to this section of the parent from the [Event reference](/en-US/docs/Web/Events).
87+
> If this is a new "class" of event, then you should add a link to this section of the parent from the [DOM events](/en-US/docs/Web/API/Document_Object_Model/Events#event_index) guide.
8888
>
8989
> _Remember to remove this whole explanatory note before publishing._
9090

files/en-us/mozilla/firefox/releases/9/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _No change._
4343
- DOM Level 3 [composition events](/en-US/docs/Web/API/CompositionEvent) are now supported.
4444
- The {{ domxref("Document.scripts") }} attribute has been implemented; this returns an {{ domxref("HTMLCollection") }} of all the {{ HTMLElement("script") }} elements on the document.
4545
- The {{ domxref("Document.queryCommandSupported()") }} method has been implemented.
46-
- The set of events that can be listened for on {{ HTMLElement("body") }} elements has been revised to match the latest draft of the HTML5 specification. The list of events in the [DOM event reference](/en-US/docs/Web/Events) reflects which events can be listened for on {{ HTMLElement("body") }}.
46+
- The set of events that can be listened for on {{ HTMLElement("body") }} elements has been revised to match the latest draft of the HTML5 specification. The list of events in the [DOM events](/en-US/docs/Web/API/Document_Object_Model/Events#event_index) guide reflects which events can be listened for on {{ HTMLElement("body") }}.
4747
- The `readystatechange` event is now fired only on the {{ domxref("Document") }}, as intended.
4848
- Event handlers are now implemented as standard IDL interfaces. For most cases, this won't affect content, but there are exceptions.
4949
- A new response type, `"moz-json"`, has been added to `XMLHttpRequest`, letting `XMLHttpRequest` automatically parse [JSON](/en-US/docs/Glossary/JSON) strings for you; when you request this type, a returned JSON string is parsed, so that the value of the `response` property is the resulting JavaScript object.

files/en-us/web/api/customevent/customevent/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ element.dispatchEvent(dogFound);
5858
// "cat" and "dog" logged in the console
5959
```
6060

61-
Additional examples can be found at [Creating and triggering events](/en-US/docs/Web/Events/Creating_and_triggering_events).
61+
Additional examples can be found at [Creating and dispatching events](/en-US/docs/Web/API/Document_Object_Model/Events#creating_and_dispatching_events).
6262

6363
## Specifications
6464

@@ -71,4 +71,4 @@ Additional examples can be found at [Creating and triggering events](/en-US/docs
7171
## See also
7272

7373
- {{domxref("CustomEvent")}}
74-
- [Creating and triggering events](/en-US/docs/Web/Events/Creating_and_triggering_events)
74+
- [Creating and dispatching events](/en-US/docs/Web/API/Document_Object_Model/Events#creating_and_dispatching_events)

files/en-us/web/api/customevent/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ browser-compat: api.CustomEvent
99

1010
The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
1111

12-
As an alternative to `CustomEvent`, you can [subclass the `Event` interface](/en-US/docs/Web/Events/Creating_and_triggering_events#adding_custom_data_–_subclassing_event) to add custom data and behavior.
12+
As an alternative to `CustomEvent`, you can [subclass the `Event` interface](/en-US/docs/Web/API/Document_Object_Model/Events#adding_custom_data_–_subclassing_event) to add custom data and behavior.
1313

1414
> [!NOTE]
1515
> If used to attempt to communicate between a web extension content script and a web page script, a non-string `detail` property throws with "Permission denied to access property" in Firefox. To avoid this issue clone the object. See [Share objects with page scripts](/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts) for more information.
@@ -46,4 +46,4 @@ _This interface inherits methods from its parent, {{domxref("Event")}}._
4646
## See also
4747

4848
- {{domxref("Window.postMessage()")}}
49-
- [Creating and triggering events](/en-US/docs/Web/Events/Creating_and_triggering_events)
49+
- [Creating and dispatching events](/en-US/docs/Web/API/Document_Object_Model/Events#creating_and_dispatching_events)

0 commit comments

Comments
 (0)