Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onbeforeunload章节中已过时的警告提示信息 #1219

Open
imnotananga opened this issue Aug 8, 2024 · 0 comments
Open

onbeforeunload章节中已过时的警告提示信息 #1219

imnotananga opened this issue Aug 8, 2024 · 0 comments

Comments

@imnotananga
Copy link

位置:
https://zh.javascript.info/onload-ondomcontentloaded#window.onbeforeunload

event.preventDefault() 在 beforeunload 处理程序中不起作用 这一部分的警告提示信息已过时
经测试,event.preventDefault()是正常起作用的,查看了下俄文原版教程,这一段内容也已经删除了

截屏2024-08-08 14 59 00

测试环境:
Chromium Engine Version 127.0.6533.89
Safari 版本17.5 (19618.2.12.11.6)

建议:
同步删除该部分内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant