onBeforeTabClick

fires before a tab is clicked

boolean onBeforeTabClick(number|string id,Event ev){ ... };

Parameters

idnumber|stringthe id of the tab
evEventthe click event object

Returns

booleanreturns false, if the event handler returns false, returns true by default

Example

tab.attachEvent("onBeforeTabClick", function(id,ev){
    //code
});

Details

Unlike the onItemClick event this one watches clicks over separate tabs and passes the ID of a clicked tab into its handler.

You can block clicking by returning false from the event handler.

See also
Back to top