CodeThatTab User Manual 

 TAB MANIPULATION

With CodeThatTable you can set current tab in run-time. It is useful if you want to use the same tab at few pages and have different current tabs after page loaded.

 Method setCurrTab(text)

This method sets current tab in tab control by text of tab.

You can use this function by using constructin like this:

<form>
  Set current item:<select onChange="ts.setCurrTab(this.options[this.selectedIndex].value)">
    <option value="URL">URL</option>
    <option value="JS">JS</option>
    <option value="JSOVER">JSOVER</option>
    <option value="JSOUT">JSOUT</option>
  </select>
</form>

<script>
  var tabDef={...}
  
  var ts = new TabSet();
  ts.create(tabDef);
</script>

or

<script>
  var tabDef={...}
  
  var ts = new TabSet();
  ts.create(tabDef);
  ts.setCurrTab('Home');
</script>

  EXAMPLE - Tab Manipulating

You can see an example and complete code here - Tab Manipulating [popup]

Read more about CodeThatTab >>