minor
This commit is contained in:
parent
c1e4507c8e
commit
9101dbac1f
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ For that we should use another event -- `onbeforeunload`.
|
||||||
|
|
||||||
If a visitor initiated navigation away from the page or tries to close the window, the `beforeunload` handler asks for additional confirmation.
|
If a visitor initiated navigation away from the page or tries to close the window, the `beforeunload` handler asks for additional confirmation.
|
||||||
|
|
||||||
It may return a string with the question. Historically browsers used to show it, but as of now only some of them do. That's because certain webmasters abused this event handler, to protect the visitor from potentially misleading and hackish messages.
|
It may return a string with the question. Historically browsers used to show it, but as of now only some of them do. That's because certain webmasters abused this event handler by showing misleading and hackish messages.
|
||||||
|
|
||||||
You can try it by running this code and then reloading the page.
|
You can try it by running this code and then reloading the page.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue