最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Chrome: How to set navigation key focus on page start? (userscript or extension) - Stack Overflow

programmeradmin3浏览0评论

Background
Navigation keys (arrow, page-up/down) can be used to move element viewport, and user need to click the scrollable element to "focus" it.
However, the focus for this specific purpose doesn't seem to have a DOM interface.

Problem
How to set the initial focus programmatically?
Apparently, dispatching a simulated MouseEvent to another element cannot change this focus.

The solution is preferably for userscript, but if it is not impossible, a solution based on chrome extension is also acceptable.

发布评论

评论列表(0)

  1. 暂无评论