Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner















Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

A combination of CSS and JavaScript that allows switching between several pages without loading them from server. The script emulates the behavior of tabbed controls in Windows applications.



You can put regular text on the tabs.

We have put together a collection of thousands of free JavaScripts that are available to you for use on your Web pages. The scripts are available, including a working JavaScript example of most of the scripts and the complete actual JavaScript code used.

We also have a great JavaScript Forum where you can post script requests, script questions, and more.

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: tabView.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Other

Download the images using the URL below:

Add this to the end of your page:

User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

8. From: tarkahn
07/14/2008 20:48:39

This is a GREAT script !!!
Thanks for making it, and making it available =)

it's maybe even a little too easy to use..
hmmm.....


THANKS AGAIN

7. From: Jonathan
return form results to tabs other than #1
07/20/2007 10:16:53

I'm trying to submit form data to the same tab as it was spawned, but the script always returns to tab 1.
how can i make the page start on tabs other than #1, like a named anchor?

9. From: bob kershwey
tab viewer
04/06/2008 14:16:56

i need help , i love this script it works perfectly, but on two of the tabs the content moves when you use the mouse wheel scroller any answers? thanks
bob

10. From: Lee (Admin)
10/31/2008 14:10:20

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

6. From: Susan
03/07/2007 19:31:55

I'm trying to add more tabs but it isn't working. I must be missing something. Is there some trick?

5. From: diego arcila
01/28/2007 19:03:43

thanks, this tip in css is very easy

4. From: Shreya Dahal
01/26/2007 12:14:25

Very good. You've done very good. But you should also keep example showing how to use the script.

3. From: Claes
01/06/2007 13:56:56

Hi Eric!

To make the images work, just add this line to the HEAD of your HTML document. (Depending on where you have your CSS file.)

<link rel="stylesheet" type="text/css" href="tabbs.css">


2. From: Senthil Kumar S
12/08/2006 00:32:45

Dear Ilya S. Lyubinskiy ,

The Script by you is very useful for me to develop a project. I am a PHP developer from India. I want to load different pages when click a tab at the same time i also want to change the styles also. I set tabs in the header of my document. i include the header in all of my pages. Help me in this problem.

Regards...

Senthil Kumar...


1. From: Eric
12/07/2006 02:59:22

I like the script and everything works except the tab feature. If anyone can explain how to add the tab images to work with the script, I would appreciate it.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.