We all had the occasion of accidentally closing a browser tab in the middle of working or playing. There is a quick shortcut to reopen the last closed tab instead of going through your browsing history.
Safari for OS X has the intuitive way to reopen the last closed tab using the system wide undo command. Just press Command-Z (⌘-Z). However this command can only reopen a single the last closed tab.
To reopen the last closed tab in Chrome or Firefox, press Command-Shift-T. Pressing ⌘-⇧-T again and again will allow you to cycle back to reopen all previously closed tabs.