tabbar.attachEvent("onClick",doOnTabClick);

I’m trying to attach an event for the tab bar but I am getting an error that attachevent is not a function?



ol_tabbar.attachEvent(“onClick”,doOnTabClick);

Current version of tabbar not supports the common event syntax yet. You can use custom event setter

tabbar.setOnSelectHandler(doOnTabClick)