call java script function on tab clicking

i’m using dhtmlxtabbar as









<div id=“maintain” name=“Maintain” selected=’<%=(screenName==“Maintain”?“1”:“0”)%>’

         href=‘tab_maintain.jsp’ onbeforeinit=‘test1()’ >




            







while clicking on maintain tab test1() is not called.Please suggest me solution for this









shweta

The tab-clicking code can’t be set in such way.
One of correct ways is next
<div id=“a_tabbar” hrefmode = ‘ajax-html’ onbeforeinit=‘configure()’


function configure(){
a_tabbar.setOnSelectHandler(test1);
}