fires before the tab is closed
id | string| number | tab ID |
e | event | event object |
tabbar.attachEvent("onBeforeTabClose", function(id, e){
//code
});
The event fires when user clicks on the "close" button of the tab, but before it is really removed.
The event is cancellable, which means that if an event handler return false, the tab won't be removed.
tabbar.attachEvent("onBeforeTabClose", function(id, e){
//code
return false;
});