Change Single- and Middle-Click behavior in the Firefox location bar

Martin Brinkmann
Jul 7, 2008
Updated • Feb 15, 2012

A left-click in the location bar of Firefox 3 will select the complete URL instead of just moving the cursor to that position. This makes it complicated to select only part of the url, as you need to click multiple times to get the cursor where you want it to appear. If you do not like that feature and prefer the old behavior I have a nice alternative for you.

A left-click puts the cursor at that position without selecting the full URL while a double-click would select the full URL instead. This can be achieved by changing two parameters in the Firefox configuration.

Type about:config in the location bar and filter for the parameter browser.urlbar.clickSelectsAll which defines the behavior of a left-click in the location bar. The value is set to true by default which means that everything is selected when left-clicking in the location bar. A double-click changes that value to false so that a left-click no longer selects the full URL.

browser urlbar clickselectsall

The second parameter changes the behavior of the middle-click. The parameter browser.urlbar.doubleClickSelectsAll is set to false by default which means that a middle-click will not select all of the URL in the location bar. A double-click changes the value to true so that the full URL is selected from now on when middle-clicking on a position in the location bar.

browser urlbar doubleclickselectsall

Update: The two preferences are still valid in more recent versions of the web browser. You can restore the values easily by following the instructions above. Just double-click again on each value to change the value back to the default. You can alternatively right-click the parameter and select the reset option from the context menu. This should return to the browser's default functionality, where a left-click selects all of the url, and a double-click the position the cursor is currently hovering over.


Tutorials & Tips

Previous Post: «
Next Post: «


  1. boomshot said on October 21, 2008 at 5:05 pm

    one more thing though… to do the same for the google search field?

  2. boomshot said on October 21, 2008 at 5:00 pm

    I have so bugged about this “feature”. Thanks for posting a fix.

  3. Deuce said on July 17, 2008 at 3:50 pm

    For some strange reason, it appears to be working the default way for the first time. Note, I turn off the computer every night. I have been experiencing the problem for a week, since updating to FF3. I changed the browser.urlbar.clickSelectsAll to false. Used FF3 for awhile, then set it back to true. This had no effect. The next day, however, it seems to be working in the default state! Don’t know what I did, but it seems ok for now.


  4. Martin said on July 17, 2008 at 12:46 am

    When I left-click the location bar in Firefox 3 the full url is selected.

  5. Deuce said on July 17, 2008 at 12:23 am

    I, for one, like the single-click highlights all feature. The problem is, no matter what I do in about:config, it has no berring. The URL bar always points the cursor rather than highlighting the whole URL. This happens only with firefox 3.

    Am I the only one that cannot control this behavior?

  6. Mutant said on July 8, 2008 at 2:19 am

    Sorry for a Typo.Please dont read ‘is’ in the first line.

  7. Mutant said on July 8, 2008 at 2:18 am

    This is thing works dude!!
    I was longing for it.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.