Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help switching tabs using javascript

Status
Not open for further replies.

markhkram

IS-IT--Management
Dec 30, 2008
32
0
0
US
I have used the following code to setup a tab system on my website:

It works great, but I'd like to have a text link at the top of the page that will automatically turn to the 2nd tab. I can't seem to figure it out or find any solutions.

Is there anyway to do it without reloading the page?

I've tried the following code, but doesn't work:
Code:
<a href="" onClick="document.getElementById('page2').tabber.tabShow(1);">Goto Page 2</a>
 
Is 'page2' the Id of the DIV that's holding your tabs?

According to the explanation on the page you linked to, that should be the Div holding all your tabs, which has the tabber object attached to it.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top