How do I disable automatic cursor placement in web browsers?

10,146

Solution 1

Here is the solution for Firefox:

  1. Type the following into the Firefox address bar: about:config

  2. Right-click on any value and select New > String

  3. You will first be prompted for the preference name. Enter the following: capability.policy.default.HTMLInputElement.focus

  4. Next, you will be prompted for the preference value. Enter the following: noAccess

That's it!

If you're not happy with the change, undoing it is a little more complicated:

  1. Close Firefox if it's open by going into the File menu and choosing Exit.

  2. Locate your Application Data folder. The easiest way to do this is to go to the Start menu, choose Run, and type in "%APPDATA%" (without the quotes.)

  3. Navigate to your profile folder. It should be in Mozilla/Firefox/Profiles/_____.default, where the underscore is a string of random characters. Find the file called prefs.js and open it in a text editor, such as Notepad. (Do not just double-click it. You should be able to right-click it and choose Edit from the context menu.)

  4. Search for the line that contains capability.policy.default.HTMLInputElement.focus. It will look like this in its entirety: user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");

  5. Delete this line, and only this line. Save the file. You may now restart Firefox.

Solution 2

When the page is loaded, or even half-loaded, and you're ready to go, hit Esc or stop the browser from loading the rest of the page.

The behaviour you're seeing when you type in one input and then it jumps to another is because the JavaScript has finished loading and carrying out it's little focus script.

The JavaScript loaded with the pages is setting the focus on an element and often disregards how much you've typed, or if you've typed at all, before defaulting to the input field of choice.

Share:
10,146

Related videos on Youtube

WARRW
Author by

WARRW

Updated on September 17, 2022

Comments

  • WARRW
    WARRW over 1 year

    Well, pretty much my question is the title. I use Google Chrome, Chromium, Firefox, and Internet Explorer 8 and was wondering how I could disable the automatic cursor placement when accessing different websites. I'm still a bit faster than all the browsers when typing in my usernames and passwords (which is really the reason why I'm asking) and it never fails that I'll see my username enter in fine, then a couple of characters from my password, then my cursor will jump back up to the username field and plug in half of my password there and fail to login of course after I hit the enter key. Mind you, I'm usually typing in the user/pass and hitting enter afterwards fairly quick, so its not like I'm meaning to do this.

    Also, it would help whenever I open up my home page (which is google) and want to type in a new URL. Even google has it where the cursor will automatically jump to the search box after a few seconds, so I'll end up searching google for half of the URL I was trying to type in the address bar.

    I searched on google and here for a solution already, but didn't see an apparent one in the first couple of pages, so any help is appreciated.

  • WARRW
    WARRW over 14 years
    Thanks for the response. I didn't realize that it was the javascript in the page that was causing this since it happens on so many different sites that I visit regularly. Is there a way to disable this element focusing in my JRE or specifically in each web browser? Thanks again, Justin
  • Christoph Rüegg
    Christoph Rüegg over 14 years
    Not really. Not unless you disable JavaScript entirely. But then it would probably break most of the site if you do.
  • Michael B.
    Michael B. over 14 years
    JRE ?? Javascript IS NOT Java
  • Arjan
    Arjan over 14 years
    I wonder what else will stop working when stopping JavaScript. There's a lot of sites out there that depend on jQuery and the like to layout the content, or on Ajax to dynamically load data.
  • Christoph Rüegg
    Christoph Rüegg over 14 years
    Sometimes you have to grin and bear the autofocus on a field if you want a site to play nicely and all whiz bangy.
  • Tim Pietzcker
    Tim Pietzcker over 14 years
    With Firefox, you could try the add-on NoScript and see for yourself if/how functionality is reduced on the sites you use. Then you can re-enable JavaScript on a site-per-site basis.
  • KiiroSora09
    KiiroSora09 over 14 years
    Google's autofocus has slowed down a lot since they introduced the suggestions. I blocked clients1.google.com and it's a lot faster for me now (though I can't promise that won't break any other apps).
  • Arjan
    Arjan over 14 years
    To disable Google Suggest see googlesystem.blogspot.com/2008/08/…
  • WARRW
    WARRW over 14 years
    Thanks for the other comments. I was primarily concerned with Chrome/Chromium as I do have NoScipt and Adblock installed for Firefox (which I rarely use anymore). I appreciate the original ESC tip.
  • Doron Behar
    Doron Behar about 6 years
    This is a great answer, I wonder if you could edit it and update it for The new versions of firefox because I couldn't find the preference capability.policy.default.HTMLInputElement.focus.