var tab = window.parent.getCurrentTab(); var tabs = window.parent.getTabs(); var index = tabs.tabs("getTabIndex",tab); tabs.tabs("close",index);