Generate Tabbed Interfaces Automatically With JavaScript OOP

It seems like everyone uses the folder tab metaphor on their Web pages these days. Find out how you can do it too.

by Tom Duffy

Mar 21, 2002

Page 1 of 5

y last DHTML solution showed you how to create a tabbed user interface (UI). Unfortunately, the code to write the UI was specific for each document. It would be far more convenient to have a way to generate such interfaces automatically using generic routines. That way, you could create as many tabbed UIs as you needwithout repeating the code each time.

Creating tabbed interfaces is straightforward, but tedious and document-specific. How can you automate the process and make it reusable?