Merge pull request #1700 from dashaezhova/patch-1

Fixed typo in article.md
This commit is contained in:
Alexey Pyltsyn 2020-01-07 01:03:51 +03:00 committed by GitHub
commit a4a84083a7
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: