Fixed typo in article.md

Fixed small typo in 'Page: DOMContentLoaded, load, beforeunload, unload' article.md
This commit is contained in:
Daria Pimenova 2019-12-30 10:01:24 +04:00 committed by GitHub
parent 28ed5a3f7d
commit c77de52364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ window.onbeforeunload = function() {
}; };
``` ```
For historical reasons, returning a non-empty string also counts as canceling the event. Some time ago browsers used show it as a message, but as the [modern specification](https://html.spec.whatwg.org/#unloading-documents) says, they shouldn't. For historical reasons, returning a non-empty string also counts as canceling the event. Some time ago browsers used to show it as a message, but as the [modern specification](https://html.spec.whatwg.org/#unloading-documents) says, they shouldn't.
Here's an example: Here's an example: