Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by josh on May 14, 2008 07:23
open dhtmlx forum
can i use a tab as a button to load another page

tabbar: as a button

can i use a tab as a button to load another page (but not loading that page in the tab content)?

for example:
-i only want one of my tabs to be a link to my index/main page but
i dont want my main/index page to be loaded in the tab content window but instead on the whole browser window!

is that possible?

thanks for helping me out.
Answer posted by Support on May 14, 2008 07:36
Sure, you can use onSelect event of tabbar

tabbar.setOnSelectHandler(function(id){
    if (id=="first")
       document.location.href="index/main"
    else
        return true;
})


The "first" in above code - ID of tab which need to be linked to index page.