Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to switch back to the last tab used (tab toggling)? I often like this behaviour on the Mac OSX when switching between apps with the CMD + Tab shortcut key.

share|improve this question
up vote 66 down vote accepted

Switching back to last tab on Firefox:

  1. browse about:config
  2. find browser.ctrlTab.previews
  3. set true

Done! :)

You can switch back to the last tab via Ctrl + Tab.

share|improve this answer
@Dashed You poor soul, waiting 1 year for the best answer. :P – iglvzx Feb 23 '12 at 19:45
And I've been waiting for several years! Thanks! – neu242 Aug 23 '12 at 8:00
This should be default. Thanks a bunch. – philipyassin Oct 3 '12 at 10:21
Odd how this isn't even available from the options window. – rhyek Jul 27 '13 at 20:28
@kellogs: ctrl + pgup and ctrl + pgdn works fine, so it's possible to have the best of both worlds. I agree though, binding it to another key would be great. – runejuhl Sep 26 '15 at 22:09

I am not fully sure whether I've got the question right. Also on Windows you can use CTRL+Tab to cycle through tabs or CTRL+Shift+Tab to cycle reverse.

If you're looking for an option to select what happens when you close a tab I recommend to have a look at the Tab Mix Plus extension. In Events -> Tab closing you will find an option to define what happens when you close a tab. There you can select options like selecting the tab right or left to the closed one as well as going back to the previously active tab.

share|improve this answer
I apologize for the confusion in my question. I've meant to find a tab toggling feature much like how you switch to the last channel viewed on a television. It seems Tab Mix Plus supports this feature. – Dashed May 31 '11 at 9:12
For anything related to taps TMP might be worth having a look at. So without even knowing it exactly it solves your problem. So actually TMP should get a reward ;) – SkyBeam May 31 '11 at 17:08

Do I understand your question correctly, that you want to be able to toggle between two tabs (both of which remain open)?

Firefox's Ctrl+Tab already has this behavior (at least on a Mac): Hold Ctrl, click Tab, and release both. The previous tab you were viewing gets the focus. Repeating it toggles between the two tabs. The trick is to let go of both keys immediately.

share|improve this answer
The CMD + TAB shortcut is used by the application switching feature on the OSX, so I cannot replicate this behaviour on my side. I've looked into Tab Mix Plus which supports this feature. – Dashed May 31 '11 at 9:10
@Dashed: Oops, bad fingers! I meant that to read 'Ctrl-Tab', not 'Cmd-Tab'; fixed above. – JRobert May 31 '11 at 19:08

You're looking for CTRL + SHIFT + T - it opens the last tab closed in Firefox.

You can also view 'Recently Closed Tabs' and 'Recently Closed Windows' in the History menu on the menu bar.

To switch between open tabs in Firefox with the keyboard, just press CTRL + 1 or 2 or whatever the tab "number" is, from the left (e.g. if your "Twitter" tab is the 5th tab open, from the left, just press CTRL + 5).

share|improve this answer

Before Firefox 20 could do just that, ( without the option to disable the preview - which just seems slow to me.) I hope that timothy has time to update or someone else will, because the nearest that I can find will only toggle between two tabs, which is even less use than the default behaviour.

share|improve this answer

There's also another add-on that does this very well (and also for all newer Firefox Versions >20): It's called simly "FLST" for Firefox 4+. (Focus last selected Tab).

I found out that you can use your mouse by clicking on the current tab or also use a Shortcut which is Ctrl + . (Ctrl and Dot)

share|improve this answer

THIS will toggle between Tabs in Firefox versions 34 and later. Use 'Tab Mix Plus' extension (by 'onemen' Gary Reyes) Go to its Options. Here select: - Mouse - Mouse Gestures - Now enable 'Switch to last selected tab when clicking current one'. - Click Apply. Done.


  1. The placement in Tab Mix Plus has changed compared to older TMP versions.
  2. 'Cycling through Tabs' in other answers, was probably not asked by the OP.
share|improve this answer

I've been using the Ctrl-Tab add-on, but it is limited to 5 most recent tabs. I could use accessing like 10 of the most recent tabs!

LastTab doesn't seem to work for me on Firefox 20 on Ubuntu 12.04. It just does the default Firefox thing (switching linearly through the stack of tabs).

share|improve this answer

If you want to switch to literally the last tab in your browser (the right most tab) then use CTRL + 9.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .