Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#1,219 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

Open the linked onload-ondomcontentloaded page at the window.onbeforeunload section and compare it with the Russian tutorial. Remove the outdated warning that says event.preventDefault() does not work, then check the surrounding Chinese text to ensure the section remains coherent.

Written by the indexing model from the issue text.

Description

位置:
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)

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

Dominant language
HTML
Stars
10.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from javascript-tutorial/zh.javascript.info

All issues in javascript-tutorial/zh.javascript.info

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.