access a js function in tabbar iframe

Hi,

I created a tabbar using iframe, now in the setOnSelectHandler handler, i want to access a JS function that is included in the active tab’s HTML. How do i do it?



I’m looking something like the following: window.frames[0].a_function();



Thanks,

Billy

Tabbar has a tabWindow method , so call of method inside tab’s iframe will look as

tabbar.tabWindow(tabID).a_function();