Fixed typo in article.md
Fixed small typo in 'Page: DOMContentLoaded, load, beforeunload, unload' article.md
This commit is contained in:
parent
28ed5a3f7d
commit
c77de52364
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue