26 Best ways to implement AJAX, CSS and Javascript based Tabs

Recently I was surfing the web for the best AJAX and CSS based tabs, menus for one of my project. In the process,I found some really good resources from fellow developers and thought to share the same with you all.

As you are aware that there are countless resources available on every topic in the world of internet but only a handful of them are utility types. As a result it is really hard at times to find the right resource from millions of websites which really suits our need.
Keeping this predicament of my fellow developers in mind, I came up with this list which will really prove to be helpful to all of you.

Here is the list of examples are arranged randomly, show some love and Digg it if you really like it :)

AJAX Tabs (Rails Redux):

Source: http://actsasflinn.com/Ajax_Tabs/index.html

AJAX Tabs (Rails Redux)Description: The purpose of doing Tabs in Ajax is not just to do something in Ajax. The context for which this is used is not for novelty. In this demo we are using Ajax to load information that does not need to be retrieved every time the user pulls the record. The methods used here are to yield absolute control over where the content comes from, what conditions trigger action, and how the panes are presented. This is really meant to be used in an application because the javascript and css are heavy if you are only using them on one page. However if you consider them groundwork for using tabs throughout a larger application then they are pretty light compared to something like YUI.

Snippet Code for Simple AJAX Tabs with cool CSS Styles:

Source: http://www.developersnippets.com/?p=22

Snippet Code for Simple AJAX Tabs with cool CSS StylesHey folks over there, here I came up with simple Ajax Tabs, you guys can show case your valuable content using tabs scenario that to with Ajax. This is simple and elegant way of representing your content when your pages have tons of content to display. If you go through the code its simple and basic Ajax implementation, if you are a web-developer its easy to understand. In the example which I am attaching with this snippet article consists of index.html, ajax.js, tabs.css and lastly the content page named as contentpage1.html

Javascript Tabbar Component with rich API:

Source: http://www.scbr.com/docs/products/dhtmlxTabbar/

Javascript Tabbar Component with rich APIdhtmlxTabbar is a JavaScript tabbar control for creating dynamic tab-navigation interface. This control lets you add nice looking and powerful multiline* tab bar to your site or web application.
The control can be easily initialized on a web page that makes building of DHTML tabbed interface a breeze. Just assign any elements on your page (for example DIVs) to tabs of Tabbar, and it will automatically do all work for you – the component will switch these elements displaying them by clicking on corresponding tab (see sample code for easy and fast initialization at the bottom of this page).

TabContainer – ASP.NET AJAX Control:

Source: http://ajax.asp.net/ajaxtoolkit/Tabs/Tabs.aspx

TabContainer - ASP.NET AJAX ControlTabContainer is an ASP.NET AJAX Control which creates a set of Tabs that can be used to organize page content. A TabContainer is a host for a number of TabPanel controls.

Each TabPanel defines its HeaderText or HeaderTemplate as well as a ContentTemplate that defines its content. The most recent tab should remain selected after a postback, and the Enabled state of tabs should remain after a postback as well.

Control Tabs:

Source: http://livepipe.net/projects/control_tabs/

Prototype - Control TabsUnobtrusive CSS tabs for Prototype.js

This script uses the Prototype javascript framework. You must include version 1.5 in your pages before including this script. This library is known to work in recent versions of all major browsers (IE 6/7,FireFox,Safari,Opera).

Accessible, unobtrusive JavaScript Tabs with jQuery:

Source: http://stilbuero.de/2006/05/13/accessible-unobtrusive-javascript-tabs-with-jquery/

Accessible - unobtrusive JavaScript Tabs with jQueryHere is a jQuery plugin that lets you create Javascript tabs very easily – once you assembled the HTML with just one line of JavaScript Code

Yahoo! UI Library: TabView

Source: http://developer.yahoo.com/yui/tabview/

Yahoo! UI Library: TabViewThe TabView component is designed to enable developers to create navigate tabbed views of content. Check out the article on how to implement YUI tab view/menu interface.

Tabtastic (Non AJAX):

Source: http://phrogz.net/JS/Tabtastic/index.html

TabtasticThis library is a simple way to implement tabs on your page using CSS, a little JS, and semantic markup which degrades gracefully on browsers with CSS unavailable or disabled.
Not only is it easy to use and accessible for screen-readers, but it supports multiple (nested, even) tabsets on the same page and allows users to bookmark the page loading to a specific tab.

A Different approach for Tab Menu (Non AJAX):

Source: http://www.kollermedia.at/archive/2007/02/20/download-tabmenu-for-free/

A Different approach for Tab MenuIf you want that the tabs are changing on click and not on mouseover -> then just change the onmouseover to onclick  Of course you can set a link to each Menu Tab – just set the linkurl in the href and delete the onclick=”return false;” At the moment it’s not usable with disabled Javascript but i will fix this as soon i have time. If you want to activate the Tabs via Keyboard – just add an onfocus=”” with the same functions as the onmouseover in it. I’ve packed everything in 1 File – but you can also put the css in an external css file and the javascript in an external javascript file. There are a lot of other ways how you can do something like this but if you use more then one of these tabmenus, i think this is one of the best solutions.

DOMTab – Navigation tabs with CSS and DOMscripting (Non AJAX):

Source: http://onlinetools.org/tools/domtabdata/

DOMTab - Navigation tabs with CSS and DOMscriptingDOMtab is a JavaScript that turns a list of links connected to content sections into a tab interface. The script removes any “back to top” links in the section and automatically hides all but the first one when the page is loaded. You can use as many tabbed menus on the page as you want to. New: If the URL of the page links directly to one of the tabs it get automatically highlighted. You can define with an extra class if you want previous and next links or not. DOMtab uses Unobtrusive JavaScript and does not have any global functions or variables. This page uses DOMtab.

Ajax Project – Tabbed Page Interface:

Source: http://www.crackajax.net/tabs.php

Ajax Project - Tabbed Page InterfaceDidn’t find what you want? Try our search
This project was inspired by forum contributor Nomadiq, based on an original CSS/Tab idea that can be found at http://nontroppo.org/test/t ab1.html
There are quite a few Javascript implementations of tabbed interfaces out there on the web. How much better, though, to be able to change from pagetab to pagetab without a page refresh? Here’s an example of a tabbed interface using Ajax to load the new pages.
We are going to use the AHAH functions described in the Metatag Grabber project to implement the interface.

JavaScript Tabifier (Non AJAX):

Source: http://www.barelyfitz.com/projects/tabber/

JavaScript TabifierAutomatically create an HTML tab interface using plug-and-play JavaScript. Cool script which is very easy to implement with in no time. Must check it out.

DHTML Goodies: Tab Panes

Source: http://www.dhtmlgoodies.com/index.html?whichScript=tab-view

DHTML Goodies: Tab PanesNothing much to say about this cool tab panes, as you all know DHTML Goodies always rocks. This site has got even support form section for all the examples they host and trust me their support form for each script is simply superb. So check out that site for other stuff too.

Ajax Tabs Content script:

Source: http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

Dynamic Drive AJAX TabsThis tab content script uses Ajax to let you display a selection of external content on your page inside a DIV and via CSS tabs! We got our inspiration for this script from Yahoo’s new homepage, which employs such a concept to show news in an organized fashion.

Tab Pane control (Non AJAX):

Source: http://webfx.eae.net/dhtml/tabpane/tabpane.html

Tab Pane controlThis Tab Pane control is fairly similar to the tab system Tim Scarfe created for developer-x.com and the basic idea is the same. That idea is to be able to use a normal XHTML document structure and if the browser supports DOM level 1 then the structure of the elements is slightly adjusted and a the className is changed for the tab pane container so that the css rules specially defined for the tab are applied.

Ajax Workshop 2: Building Tabbed Content

Source: http://www.ajaxlessons.com/2006/02/18/ajax-workshop-2-building-tabbed-content/

Ajax Workshop 2: Building Tabbed ContentThis workshop we will be building a tabbed content browser that’s Ajax powered. When ever a user clicks a tab the Ajax will communicate with the server and send back the appropriate data for that tab. We will start this workshop off with the XHTML and CSS for the tabbed content browser. We will need 3 main IDs (one for the container, one for the content area and one for the loading status) and 1 class (for the tabs).

The Zapatec Javascript Tabs Demos:

Source: http://www.zapatec.com/website/main/products/tabs/demo.jsp

The Zapatec Javascript Tabs DemosThis is the AJAX Tabs demo. It uses the Zapatec AJAX Transport layer to transfer the tab contents dynamically and JSON to define the contents. It fetches Tab contents only when they are needed. This method lets you reuse HTML code. You can think of it as a client/server side include. You can easily create a Zapatec Tabs database-driven application using AJAX and JSON.

DOM Dynamic Tabs (Non AJAX):

Source: http://www.ajaxlessons.com/2006/02/24/dom-dynamic-tabs/

DOM Dynamic TabsDOM Dynamic Tabs is a very easy simple to use, it can be used right out of the box with little code. The first thing that you need to do is create an instance of the Dynamic Tab object.

Create killer menus effortlessly!: CSS Tab Designer

Source: http://www.highdots.com/css-tab-designer/

CSS Tab DesignerCSS Tab Designer is a unique and easy to use software to help you design css-based lists and tabs visually and without any programming knowledge required! Ready made tab menu builder tool for designers and developers. Cool one must try it.

Light Weight Low Tech CSS Tabs (Non AJAX):

Source: http://www.fiftyfoureleven.com/weblog/web-development/css/light-weight-css-tabs

Light Weight Low Tech CSS TabsAn example of light weight tabs by combining the Sliding Doors method with the Mountaintop corners idea. Complete source is available for download, check this is also an another cool menu.

DD Tab Menu  – 5 styles (Non AJAX):

Source: http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

DD Tab MenuDD Tab Menu is a standards compliant, 2 level tab menu. Move your mouse over a tab, and a 2nd level content appears beneath it. The script uses CSS to control all of its appearance, and plain HTML to implement the entire menu tabs and contents.
Module Tabs – Carousel:

Source: http://billwscott.com/carousel/carousel_tabs.html

Module Tabs - CarouselExample of showing one page of content at at time in tabs. Each tab link scrolls to the page selected. Since all animation is turned off (animationSpeed = 0) then it just moves the desired content into view.


Source: http://www.wassons.org/pajaj/public/widget/AjaxTabWidget.php

PAJAJ AJAX TabsPAJAJ is a object oriented Ajax framework, created by Gilbert Hyatt, written in PHP5 for development of event driven PHP web applications.

CSS Tabs 2.0 (Non AJAX):

Source: http://unraveled.com/projects/css_tabs/

CSS Tabs 2.0My goal was to build CSS tabs without using any images or hacks and with as little CSS as possible. Simple CSS Tabs and very easy to implement the same in any of your applications.

I think this article doesn’t end here, there are even more good tab based interfaces and menus around the web. Why not check this huge collection of collected CSS based Navigational Tabs Articles, Tutorials on list menus, navigations and tabs.


Why not show some love and Digg it if you really like it :)

Published by Sravan Kumar

A Creative Web Designer, Developer, User Interface and User Experience Expert.

Join the Conversation


  1. You should have left “Best” out of the title. Isn’t it odd how popular articles about doing tabs like this are, yet I can’t ever recall going to a website where they were used, probably because it’s not the best way of presenting information for most sites. Most sites would do better to put stuff on different pages rather than using tabs like this.

  2. umm most these aren’t even ajax. The problem really with using tabs is that google can’t always see all of these different types of tabs.

  3. I love how a site demonstrating web develope itself fails to provide solid coding. In the real world, you never ask your viewers to install a new browser so that they may see your website the way you intended. I’m running IE, the most popular browser, and your site is pretty jumbled.

  4. logic, you mean you’re using ie, the most retarded browser. if you’re a developer in any way shape or form, you’d know you should be on firefox.


  5. All developers *shoud* work with all the main browsers. IE is still the most popular (irrespective of whether it should be!) which means that any site that wants to do well really must work well in IE. Now, I can hardly read what I am typing in this text box, I have to keep selecting it to be able to see what I typed – that may be a poor design issue, or an IE issue – either way, on a professional site, it should not happen.

    Thanks for the list, I didn’t find what I wanted, but I did bookmark a couple of useful links.

  6. Thank you for all of these examples and resources.

    just an fyi PAJAJ AJAX seems to be down.

  7. Yep it works the Ajax Tab systems that we now use on our Hosting Part and the automtic functions is brilliant. I would like to find a MOUSEOVER version though, so that you just move your mouse over the tab for choosing that tab. Anyone ?

  8. I have used the webfx tabpane on my site. It works very well but one gripe I have is that google cannot read the content of the tabs which obviously effects optimization. What I am wondering is whether any of these are SEO friendly.. I like the look of tab container and dhtml goodies tabs as they are very similar to what I have already, however will they suffer the same problems as the tabpane script i’m currently using?

  9. Can come body tell me how to load the fully build another webpage with graphics and every stuff…Like for example yahoo.com…..how could i display it in tabs like for example i say i want to display webpages aboutus.html, services.html, downloads.html..and these three are locally designed full pages not only text how could i show them in TABS

  10. yet I can’t ever recall going to a website where they were used, probably because it’s not the best way of presenting information for most sites…This is the best blog i have found sharing very good information..I am very weak in ajax,..i learnt some thing from this post..

    ecommerce web developer

  11. Nice piece. I was checking constantly this blog and I’m impressed! Very helpful information specially the
    last part. I care for such information a lot. I was looking for this particular information for a long time.

  12. I am a fan of Ajax tabs, since the layout, utilization, effects and the timings used all would be really great

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Thank you for sharing the article across social media. You can follow us in these paltforms to receive latest updates from WittySparks.

Send this to a friend