95

When using a browser, like Firefox, I appreciate that I can easily navigate my tab history with Alt+ (for back) and Alt+ (for forward.) That makes perfectly good sense to me, and I've used that keyboard shortcut for the longest time.

I frequently do text input in web pages. On some pages (but not all) when I want to erase the last few characters I just typed, I tap Backspace several times. Tap tap tap. And then, lo-and-behold, my browser is leaving the page I was on and going back in the tab history. I may have lost what I was writing. And I am a very unhappy user.

Chrome developers have decided to remove this, see this story from Ars Technica:

Google hovers over delete button for backspace nav shortcut in Chrome Google: Only 0.04 percent of page views navigate via the backspace button. ... We have UseCounters showing that 0.04 percent of page views navigate back via the backspace button and 0.005 percent of page views are after a form interaction.

This means that up to 1 in 8 backspace navigations could be losing user data.

I hypothesize that many of these are accidental - I lost text again a few days ago because of this feature.

Why did browser creators think this is such a great feature? Alt+ is unambiguous. But to overload the Backspace key with this behavior is atrocious! I can see from a quick Google search that many others are frustrated by this.

  • How did this come about?
  • Is the standard default behavior too strongly established to reverse course?
  • Can we change it, and what would be the plan to do so?

Canonical paths to blocking this

I'll be logging the canonical ways to turn this off for browsers here, and I do not want to see software add-ons here:

Aaron Hall
  • 4,003
  • 4
  • 18
  • 24
  • A related question about the spacebar: http://ux.stackexchange.com/questions/53110/why-does-the-space-bar-do-page-down-in-browsers – Nicholas Pappas Feb 28 '14 at 19:34
  • 6
    This blog entry by Jeff atwood would also apply: http://blog.codinghorror.com/the-opposite-of-fitts-law/ and it seems discussed a great deal in this chromium bug report: http://code.google.com/p/chromium/issues/detail?id=144832 but I'm not qualified enough for it to be time-effective for me to attempt to answer. – Aaron Hall Feb 28 '14 at 19:43
  • 1
    That bug report is very interesting! It is almost a usability test report in itself! :) – Nicholas Pappas Feb 28 '14 at 19:46
  • http://blog.laptopmag.com/disable-backspace-chrome-ie-firefox Here's how you stop it happening in Firefox – Peter Feb 28 '14 at 19:54
  • I saw that, @Peter and I do NOT appreciate being told to install third party software from an developer of no reputation. I hope someone will Make an excellent canonical answer that thoroughly discusses the ins and outs of removing this as a default behavior in browsers for user experience. and for the record, this is the canonical way an individual would change the default in Firefox: https://support.mozilla.org/en-US/questions/924490 – Aaron Hall Feb 28 '14 at 19:59
  • 1
    @AaronHall, I'm assuming your ire is directed at the article rather than me for trying to help you. As the article states, Firefox does not require any additional installs. – Peter Feb 28 '14 at 20:05
  • I created a gist of a suggested answer outline for what I might consider would be the best answer: https://gist.github.com/anonymous/9279297 – Aaron Hall Feb 28 '14 at 20:35
  • 24
    I don't understand. Backspace never goes back a page when the focus is on a textfield, such as a textbox, address bar etc. This behaviour is the same even in Windows Explorer. As long as Backspace is constrained to a textfield, you can go on pressing it, and the browser/window will never leave the current page. Morever, you never type when your focus is not in a text field, so the overloading of the backspace is perfectly justified. – SNag Mar 21 '14 at 18:05
  • @SNag you're welcome to form an answer defending this feature, and we can see how well it fares. If you do a good job, I'll +1 and ask people to judge on the merits, and not whether they disagree with the feature, no joke. :) – Aaron Hall Mar 21 '14 at 18:10
  • 1
    @SNag have you tried doing what various users might do, perhaps interacting with page elements, highlighting text you want to mentally bookmark, scrolling up and down with your mouse wheel, clicking it and dragging to adjust finely, resize your text box, and go back and forth between these activities while editing text? You know, just do what a User Acceptance Test-er might do. – Aaron Hall Mar 21 '14 at 18:22
  • I'm afraid for Chrome the only fix is a software add-on. – OJFord Mar 22 '14 at 03:26
  • 2
    On linux Mozilla disabled the backspace key mapping since 2006-12-07 – ilanco Mar 22 '14 at 12:50
  • @OllieFord I do not view software add-ons as an acceptable solution. We can see from Google's product forums the degree to which this frustrates so many people to write with a great deal of animosity, and with a great deal of support. Those writing in the support of the bug (it's a bug not a feature) seem to be coming across as trolls. https://productforums.google.com/forum/#!topic/chrome/LnpPdwaWvqI – Aaron Hall Mar 22 '14 at 14:32
  • Oh I know - I just meant you can't include the fix in your post, since it does require an add-on. (Or changing the source, even worse!) – OJFord Mar 22 '14 at 15:57
  • 1
    I wanted to add that I use the backspace quite a lot, and have found the opposite situation which might shed light on why Google likes it. When I hit a google search in my history, hoogle quickly puts the text focus in their main box so my backspace now starts erasing what I wrote rather than going further in the history, and I consider doing another search. – Gregory Magarshak Mar 22 '14 at 16:22
  • 1
    As an aside, I quite like it and use it ridiculously often. While browsing, my hand rests on the area with home, page up/down, end, and the "vaunted" backspace. That area on the keyboard is mapped towards all buttons that are useful for browsing, and it makes browsing a breeze. – Dirk v B Mar 22 '14 at 20:44
  • There are people who are either a) cursor-focus savants, b) people who never edit their text online, and c) people who don't mind being unproductive by losing their work. I don't think that justifies leaving the ejector-seat button doubling as a heavily used editing button by default. Using an Internet Browser is much more of a breeze when you can worry about other things than losing your work. You can see there's also an answer below that removes your pathological functionality, but it doesn't remove the functionality of the brilliant [Alt]+[←] keys. Safer to learn those, I would suggest. – Aaron Hall Mar 22 '14 at 22:57
  • 1
    Also please note there is a Shift+Backspace shortcut which implements Forward command. – miroxlav Mar 28 '14 at 01:25
  • 1
    It's the same for Return meaning newline or commit. – Roman Reiner Jun 28 '14 at 06:29
  • 1
    More than a year later, "hey, this is too ranty, I'm voting to close." So you're a bit late to the show. However, the question is clearly stated. Maybe you're a cursor-focus savant, but if you disagree with the premise, make the case in a good answer that addresses the question as given, and I'll upvote you. If this is closed, you won't be able to. If you really don't think this is a problem, you should see the real rant that popped up here a few days ago. But you'll probably need more rep, as it was deleted. – Aaron Hall Mar 11 '15 at 13:27
  • I've never had this problem – UXerUIer Jul 13 '15 at 01:32
  • 3
    @SNag - It's far too easy to lose focus on the text field for whatever reason. I'm posting this almost a year and a half after your comment after encountering the same problem, and reading through the bug report page of many other users encountering the same problem. I don't think the overloading is even close to justified. – Lou Aug 09 '15 at 21:59
  • Chrome has "fixed" it from version 52. But its a lame fix. ignoring the real problem. The problem wasn't backspace itself, it was inputs loosing control and redirecting to other page when there were unsubmitted data. Proper solution would be to ask user if he/she really wants to navigate to other page when there are data that wasn't submitted. Just like the StackExchange does when you start typing answer and then click on link, you are prompted and warned about potential lose of data ... – Buksy Aug 19 '16 at 08:59
  • As someone who absolutely loves having backspace go back (to the point of using a chrome extension to reenable it): When I'm working on a project across multiple windows and tabs, I'll abandon the cursor. Relative to the keyboard, it is slow and unwieldy, and breaks my flow to have to move my hands away from the home row, while everything I need to do can be done with keyboard shortcuts and alt-tab / shift-tab. Backspace is the perfect button for browsing with, as I use the web for documentation, not form-filling. As with the cursor, alt-left arrow requires I move my hands; Backspace does not. – Larkeith Oct 21 '16 at 11:27
  • 1
    I agree. Backspace goes back when an user try to change a field with readonly attribute. – Gabriel Anderson Oct 28 '16 at 19:19

5 Answers5

53

What We Know So Far:

The first browser did not use Backspace to go back a page:

Several Mosaic menu or button functions have keyboard equivalents. Among them:

b, equivalent to the Back button

Source: http://www.uoxray.uoregon.edu/local/manuals/biosym/discovery/Html_Help/navigating.html

First Netscape Navigator (evolved from Mosaic) Did Not Use Backspace

Scroll to previous page: Page Up

Source: http://www.w3.org/WAI/UA/netscape-keyboard.html

Possible reason why Microsoft used Backspace for back a page:

Back in 9/26/95, the Backspace key was mapped for go up one directory in Windows Explorer. This could be the reason why Microsoft also used the Backspace key on their IE for back/up a page. Of course, this is pure speculation on my part :)

Source: http://www.onecomputerguy.com/keyboard.htm

For Firefox:

The backspace key was mapped to the browser ‘Back’ function in Mozilla for consistency with Internet Explorer.

Source: http://kb.mozillazine.org/Browser.backspace_action

For other browsers:

I think the reason is similar to Firefox's, for consistency sake.

Chairman Meow
  • 3,127
  • 13
  • 23
  • 68
    "It's Internet Explorer's fault"... well there's a shocker! :) – Nicholas Pappas Feb 28 '14 at 20:00
  • Some of the Chromium bug report comments implied the same thing regarding Google Chrome. – Aaron Hall Feb 28 '14 at 20:04
  • I created a gist of a suggested answer outline here, but feel free to take whatever approach you feel best: https://gist.github.com/anonymous/9279297 – Aaron Hall Feb 28 '14 at 20:35
  • Fixed on chrome for linux: https://code.google.com/p/chromium/issues/detail?id=30699 – Mike H-R Mar 22 '14 at 11:48
  • 1
    I'm pretty sure "Scroll to previous page" in Netscape meant to scroll a page up, not to go back one page, though. – Alexander Mar 22 '14 at 12:43
  • @EvilClosetMonkey I wouldn't say it's IE's "fault". I mean, if you saw someone doing something retarded - let's say the US president was taking a dump on the streets in public - would you make it a habit to do it yourself and then say "it's that guy's fault"? – Nolonar Mar 23 '14 at 05:22
  • Consider this: IE and Windows Explorer used to be one thing. You could type a URL in WE and a folder path in IE. You can see why WE's behavior was brought to IE. Other browsers adopted this like they adopted most de facto standards from IE – fregante Mar 23 '14 at 12:10
  • @Nolonar They adopted it because IE was so dominant and if you wanted users to make the switch you had to accommodate those users and behave like the other browser. The biggest problem with this UX feature is that you can't enter text into a form in WE, but you could in IE. So, in the end it is IE's fault and it is a bad decision. They abused their monopolistic position and other people had to make bad decisions to get even a toe hold in the market. It would be nice now though to see everyone drop this lunacy. – boatcoder Jul 12 '14 at 11:23
  • @Mark0978. If IE had changed the way it interpreted JavaScript, web-devs would've changed their JavaScript to make it work under IE, thus forcing other browsers to change their own interpreters to match IE's. But we're talking about the behavior of a keyboard key within a browser, one that most users don't even use for navigation. Most people I've observed know Ctrl+C and Ctrl+V, and nothing else; no Ctrl+F, no Ctrl+A, no backspace, no Alt+Arrow, no Ctrl+P, not even Ctrl+T, Alt+Tab, Ctrl+Tab, *NOTHING*. Every browser is equally guilty of misusing the backspace; IE simply led on. – Nolonar Jul 12 '14 at 21:32
  • Potentially interesting: Lynx used the Backspace key to access the history page. As this browser lacks a single key command to go back one page this would start the key sequence used to go back (or forward). Lynx predates IE by about 3 years. – Kelly Thomas Jun 29 '15 at 03:50
53

I don't know how it started but I can add my two cents about what ALL my clients say:

$%!$% what the @$#%#% just happened? Why did the page change? Now I have to fill in that form all over again.

I would love to see this go away for good, and the first thing I do when building a form laden website is the following jQuery script:

var hasfocus = 'false';

// when focus happens, set a variable $(document).on('focusin','input, textarea',function() { hasfocus = 'true'; });

// unset when focus is not happening
$(document).on('focusout','input, textarea',function() { hasfocus = 'false'; });

// if not in a form field, stop backspace and delete default action $(document).keypress(function (e) { if(e.which == 8 || e.which == 46) { if(hasfocus == 'false') { e.preventDefault(); } } });

pathfinder
  • 799
  • 5
  • 7
  • 2
    I would love to see how other people handle this in javascript without jQuery too. And I have used this code for years with no complaint, but if there is a better way I am all ears :) – pathfinder Mar 22 '14 at 02:27
  • 22
    StackOverflow would be the place to provide this type of answer. In fact, artificially capturing the backspace key and altering its behavior is poor UX. The user should not have to relearn what a certain key does on your web site versus every other website. – Nicholas Pappas Mar 22 '14 at 03:11
  • 4
    I think a lot of heavily used sites that are very focused on user experience are actually doing this. – Aaron Hall Mar 22 '14 at 04:23
  • 8
    hey closet monkey, as my answer states, not one of my clients (or users) knows the backspace is supposed to do that, so I am actually making the UX be what they expect. In fact, not one of the people filling out a form and actually unfocusing from the text field wants to go back a page and lose all the data they just input. It is especially painful on a joomla or wordpress site when you spent an hour writing an article and accidentally do this. – pathfinder Mar 22 '14 at 04:31
  • 3
    plus I stop my users from cursing at their computers, so I would expect that the user experience for them is greatly enhanced :) – pathfinder Mar 22 '14 at 05:44
  • 2
    It doesn't matter if this is some useful code; that was not what was asked for. Plus you haven't actually provided an answer to the question anyway. The question is about the reason for this behavior existing. – JonW Mar 22 '14 at 09:13
  • I guess when going forward again the form should just be at its prior state. Removing the behaviour for a key isn't that nice either. – Joey Mar 22 '14 at 11:32
  • Ah, that's why I wasn't able to reproduce it on UX.se – Ramchandra Apte Mar 22 '14 at 11:46
  • +1 for @Luc's comment. Sane browsers will refill your data when you go forward anyway. – Indy Mar 22 '14 at 14:09
  • 1
    @Indy Yeah, well, usually. Some smart websites think contenteditable divs or other customized stuff (tinymce or what have you) are the solution to everything, and those are so scripted that the browser can't save them. Good old textareas aren't such a bad idea after all... – Luc Mar 22 '14 at 14:16
  • @Luc I mourn the days of global NoScript support. – Indy Mar 22 '14 at 14:58
  • 2
    I tell you what, I really like this answer not because of the code, but because it demonstrates that this is such a pathological behavior that sites have had to come up with a way of over-riding it. It should certainly not be default behavior, but I'll allow that users should be put in control. Nevertheless, for your own productivity and sanity, I would suggest you familiarize yourself with [Alt]+[←] unless you're a cursor-focus savant. – Aaron Hall Mar 22 '14 at 16:38
  • I was adding my comment, and nothing more. This is a good place to have this script handy. Plus, UX = User Experience, and for my clients and users, I have made their experience better, so I would choose to do that over "bad practices" any day. I would definitely support changing the default behavior by the browser vendors. It is not like there is another button right next to backspace that goes forward a page, so it is not well thought out. – pathfinder Mar 22 '14 at 18:08
  • Changing from the default behavior is especially useful when creating a web based application internally used by a company to manage data via forms of all kinds. It is not so necessary if it is just a web page for reading. As my answer states, I use this for form laden sites and pages. – pathfinder Mar 22 '14 at 19:24
  • Anyone use gmail lately and select some text in the email they are writing and click the delete button? Even though I have text selected and am in some pseudo form of a textarea (the compose email box), sometimes my browser goes back a page. We would call this a "bug" in the gmail site, but damn is it frustrating to deal with. Hopefully google will implement something to make it stop one of these days. – pathfinder Feb 03 '16 at 06:35
13
  • How did this come about?

In 2005 this was implemented on Mozilla Firefox for the following reasons:

The backspace key was mapped to the browser ‘Back’ function in Mozilla for consistency with Internet Explorer. However, to improve consistency with other applications running on Linux, it was decided that this mapping should be optional—and set based on which platform the browser was running on. As a compromise, this preference was created to allow the backspace key to either go back/forward, scroll up/down a page, or do nothing.

Reference: Browser.backspace_action

  • Is the standard default behavior too strongly established to reverse course?

For almost ten years of internet browsing history, this is the default behavior. We may dislike it, but it will prevail a lot of Internet forums anger about it. There is a setting, which one can use if this is frustrating enough. Sometimes it's better to just accept things the way they are, take the minut it takes to change the default action, and forget it. I do this every time I download a new browser, since default doesn't work for me. Instead I see these options as a way to customize the browser to work the way I want, since I'm an unique user.

Developing a browser to work for all users, the way all users want is impossible. Instead one need to test how the browser is used to come up with a default setting, which can be customized. There is probably no good reason to keep a bad default setting.

Sometimes things live on even if the original meaning have since long disappeared. This may stand in your way, if your trying to change things. Reference: Save icon, is the floppy disk icon dead?

  • Can we change it if we establish that no-one uses it? (And how would we establish that?)

It's always possible to change things, but the longer an action has been around, the harder it's to change. You need to prove through scientific valid user testing that this setting really is a bad behavior. It takes time and effort, but you could definitely make it happen. Just remember to not test your friends. Test a large enough random user group, make your statistical metrics public, and convince Firefox governator that this should be changed.

Keep us posted on your progress and Good Luck!

Benny Skogberg
  • 54,996
  • 22
  • 140
  • 241
  • 3
    Why can't Mozilla think for themselves? I hate it when people just blindly copy things from others, it just shows a total lack of thought and innovation. – user43251 Jun 02 '14 at 08:51
  • 1
    I bet that any survey on whether users actually use Backspace to go back a page, or heck, even a survey on whether they want this behavior, would yield a pretty clear result. – Marc.2377 Apr 14 '18 at 05:15
6

That feature is inherited from windows explorer feature, that migrated to Internet Explorer and then to other browsers. It became a de facto standard, due that most computers had Windows and Internet Explorer

IAmJulianAcosta
  • 2,372
  • 1
  • 15
  • 23
0

A commenter on the answer responded:

I don't understand. Backspace never goes back a page when the focus is on a textfield, such as a textbox, address bar etc. This behaviour is the same even in Windows Explorer. As long as Backspace is constrained to a textfield, you can go on pressing it, and the browser/window will never leave the current page. Morever, you never type when your focus is not in a text field, so the overloading of the backspace is perfectly justified.

Aaron Hall
  • 4,003
  • 4
  • 18
  • 24