So I created some tab using XUL. How can I write javascript code so that if I click on a button in tab 1, tab 2 will be shown?
Thanks
So I created some tab using XUL. How can I write javascript code so that if I click on a button in tab 1, tab 2 will be shown?
Thanks
Get the tabs element and set the selected Index property to the index of the tab you want. e.g. if the tabs element is 'mytabs' and you want to select the 2nd tab...
document.getElementById("mytabs").selectedIndex = 1;