_tina_
06-26-2009, 02:27 AM
Hi,
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:
<ul>
<li><a href="tab1.html">Tab 1</a></li>
<li><a href="tab2.html">Tab 2</a></l>
</ul>
<div id="load_pane">
<p>Tab content</p>
</div>
Thanks in advance :)
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:
<ul>
<li><a href="tab1.html">Tab 1</a></li>
<li><a href="tab2.html">Tab 2</a></l>
</ul>
<div id="load_pane">
<p>Tab content</p>
</div>
Thanks in advance :)