We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6be354d commit 2ac7526Copy full SHA for 2ac7526
2-ui/5-loading/01-onload-ondomcontentloaded/article.md
@@ -199,7 +199,7 @@ window.addEventListener("beforeunload", (event) => {
199
Instead, in such handlers one should set `event.returnValue` to a string to get the result similar to the code above:
200
```js run
201
window.addEventListener("beforeunload", (event) => {
202
- // same as returning from window.onbeforeunload
+ // works, same as returning from window.onbeforeunload
203
event.returnValue = "There are unsaved changes. Leave now?";
204
});
205
```
0 commit comments