搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Avoid body focus during tabbing

  • 3 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 Saravana

more options

After opening Firefox and placing cursor in address bar, try pressing tab button. Now focus will set on each element like Address bar, Search window, body of the opened webpage. This is where im facing the problem. I don't want firefox to set focus on the body element while pressing tab i.e whole body gets focused. And also that does not make any sense , why the focus is setting to body of the page because we cant do any stuff by setting focus to the body of the element. I tried with other browsers , which works perfectly fine. But i like to stick to Firefox, the browser which i love the most. Being a developer i tried with lots of stuffs, but couldn't make out solution for it.Can u please provide the solution for it ? or the script which will avoid the focus of body element ?

After opening Firefox and placing cursor in address bar, try pressing tab button. Now focus will set on each element like Address bar, Search window, body of the opened webpage. This is where im facing the problem. I don't want firefox to set focus on the body element while pressing tab i.e whole body gets focused. And also that does not make any sense , why the focus is setting to body of the page because we cant do any stuff by setting focus to the body of the element. I tried with other browsers , which works perfectly fine. But i like to stick to Firefox, the browser which i love the most. Being a developer i tried with lots of stuffs, but couldn't make out solution for it.Can u please provide the solution for it ? or the script which will avoid the focus of body element ?

所有回复 (3)

more options

You're right: focusing the entire page/document/body doesn't seem very useful, but there must be some reason for it. I'm not sure who can answer that one.

With respect to changing the behavior, you could try adding an event handler for focus to move it along to the next focusable item (e.g., hyperlink or form field), but it might be difficult to write a function that works on all pages without further customization.

Separately, I note that the forum detected your browser as Firefox 4.0.1, which has known security vulnerabilities. For general browsing, you should use one of the up-to-date versions (currently Firefox 11 and 3.6.28).

more options

If you keep pressing the Tab key then the other focusable elements on the web page get focus, so the cycle doesn't end with focusing the body element.

more options

Hi..:) thanks for the reply... I tried with all Versions of Firefox browsers even in FF 12, but this problem exists in all versions.