Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to stop firefox from auto focusing on text boxes

  • 3 답장
  • 1 이 문제를 만남
  • 4 보기
  • 최종 답변자: cor-el

more options

There is an extremely annoying behavior of firefox, that it automatically focuses on text boxes when a page loads, even if the text does not have the html autofocus attribute. This wouldn't be so bad on its own, the main problem is that it happens after a big delay, up to a few seconds after the textbox has loaded. This frequently causes problems like me manually focusing the text box I want to use, start writing, and then mid-word firefox changes the focus to a totally different text box. It drives me up the wall, and I can't find a solution for it. I've tried disabling the browser.autofocus setting in about:config, to no avail because it's not being focused because of an autofocus attribute, also I tried adding the setting capability.policy.default.HTMLInputElement.focus;noAccess but this didn't work either. Please help

There is an extremely annoying behavior of firefox, that it automatically focuses on text boxes when a page loads, even if the text does not have the html autofocus attribute. This wouldn't be so bad on its own, the main problem is that it happens after a big delay, up to a few seconds after the textbox has loaded. This frequently causes problems like me manually focusing the text box I want to use, start writing, and then mid-word firefox changes the focus to a totally different text box. It drives me up the wall, and I can't find a solution for it. I've tried disabling the browser.autofocus setting in about:config, to no avail because it's not being focused because of an autofocus attribute, also I tried adding the setting capability.policy.default.HTMLInputElement.focus;noAccess but this didn't work either. Please help

모든 댓글 (3)

more options

Try to toggle browser.autofocus to false on the about:config page. You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Thanks but as I said I've already tried that.cor-el said

Try to toggle browser.autofocus to false on the about:config page. You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

Thanks but as I said I've already tried that.

more options

If JavaScript is used to set focus to the field and not the autofocus attribute then only blocking this script could prevent this. If you know that a web page behaves this way then you will have to wait until the page has finished loading (no spinning throbber and a reload icon instead of the stop button). CAPS (capability.policy.default) prefs are no longer supported.