docs(learn_web_development): add link to first example in event bubbling section. #41589
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add link to first example in event bubbling section
Description
Motivation
The paragraph in the Event delegation section referred to “our first example” without providing a link, causing confusion for readers who land directly on the page.
This update resolves that by adding a cross-reference to the “An example: handling a click event” section in the Events article, ensuring users can easily access the example being discussed.
Additional details
Added link:
https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/Events#an_example_handling_a_click_event
File updated:
files/en-us/learn_web_development/core/scripting/event_bubbling/index.md
This update maintains consistency with MDN’s documentation linking practices.
Related issues and pull requests
Fixes #41587