You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Activity
GeoDaoyu commentedon Nov 17, 2025
我看英文原版还是有这块内容
https://javascript.info/onload-ondomcontentloaded#window.onbeforeunload
imnotananga commentedon Nov 24, 2025
英文原版教程中的确还有这部分内容,我以前误以为俄文版是原版,刚看了下俄文版其实是翻译版,可能翻译的时候没有补充这块。
不过我又尝试了下,
event.preventDefault()依然是有效的,感觉是现代浏览器为了兼容已经支持了。GeoDaoyu commentedon Nov 24, 2025
要不然先给 https://github.com/javascript-tutorial/en.javascript.info/issues 提issue,然后中文版这边再同步?