Skip to content

Commit 402d7c6

Browse files
authored
Merge pull request #27 from Winiex/patch-1
Fix typo
2 parents 32456cb + a1757f9 commit 402d7c6

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/3-event-details/10-onload-ondomcontentloaded

1 file changed

+1
-1
lines changed

2-ui/3-event-details/10-onload-ondomcontentloaded/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Page lifecycle events:
238238
- All scripts are executed except those that are external with `async` or `defer`
239239
- Images and other resources may still continue loading.
240240
- `load` event on `window` triggers when the page and all resources are loaded. We rarely use it, because there's usually no need to wait for so long.
241-
- `beforeload` event on `window` triggers when the user wants to leave the page. If it returns a string, the browser shows a question whether the user really wants to leave or not.
241+
- `beforeunload` event on `window` triggers when the user wants to leave the page. If it returns a string, the browser shows a question whether the user really wants to leave or not.
242242
- `unload` event on `window` triggers when the user is finally leaving, in the handler we can only do simple things that do not involve delays or asking a user. Because of that limitation, it's rarely used.
243243
- `document.readyState` is the current state of the document, changes can be tracked in the `readystatechange` event:
244244
- `loading` -- the document is loading.

0 commit comments

Comments
 (0)