View Full Version : Javascript and tabs

06-26-2009, 02:27 AM

I have three html files. index.html, tab1.html and tab2.html.

Index should be just a page with two tabs, which when clicked will display the content of tab1.html etc.

How would I do this in JavaScript?

My index.html is:

<li><a href="tab1.html">Tab 1</a></li>
<li><a href="tab2.html">Tab 2</a></l>

<div id="load_pane">
<p>Tab content</p>

Thanks in advance :)