Skip to content

Commit 75b559f

Browse files
authored
Update article.md
1 parent 39fb7a6 commit 75b559f

File tree

1 file changed

+3
-3
lines changed
  • 2-ui/2-events/01-introduction-browser-events

1 file changed

+3
-3
lines changed

2-ui/2-events/01-introduction-browser-events/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ There are many other events. We'll get into more details of particular events in
3030

3131
To react on events we can assign a *handler* -- a function that runs in case of an event.
3232

33-
Handlers is a way to run JavaScript code in case of user actions.
33+
Handlers are a way to run JavaScript code in case of user actions.
3434

3535
There are several ways to assign a handler. Let's see them, starting from the simplest one.
3636

@@ -288,7 +288,7 @@ Multiple calls to `addEventListener` allow to add multiple handlers, like this:
288288

289289
As we can see in the example above, we can set handlers *both* using a DOM-property and `addEventListener`. But generally we use only one of these ways.
290290

291-
````warn header="For some events handlers only work with `addEventListener`"
291+
````warn header="For some events, handlers only work with `addEventListener`"
292292
There exist events that can't be assigned via a DOM-property. Must use `addEventListener`.
293293

294294
For instance, the event `transitionend` (CSS animation finished) is like that.
@@ -354,7 +354,7 @@ Some properties of `event` object:
354354
`event.clientX / event.clientY`
355355
: Window-relative coordinates of the cursor, for mouse events.
356356
357-
There are more properties. They depend on the event type, so we'll study them later when come to different events in details.
357+
There are more properties. They depend on the event type, so we'll study them later when we come to different events in details.
358358
359359
````smart header="The event object is also accessible from HTML"
360360
If we assign a handler in HTML, we can also use the `event` object, like this:

0 commit comments

Comments
 (0)