Skip to content
Advertisement

How to Set Default TAB in particular Menu Tab in Menu Bar

I have some queries in this code. This is the menu bar JavaScript in this it has many tab. When I run this code it automatically click in Second TAB instead of First TAB.

JAVASCRIPT CODE.

JavaScript

HTML Code :

JavaScript

CSS Code :

JavaScript

For Sample Please See the below Link. Click Here to View the Sample of it http://www.javascriptkit.com/script/script2/tabset/index.shtml

Advertisement

Answer

Add rel attribute to your <a> tag Home

Hope this helps!

UPDATED
In your HTML code update the below call

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement