How to get tab object not a active tab object for safari browser?
How to get tab object dy开发者_StackOverflow中文版namically for safari browser.In safari extension api there is method safari.application.activeBrowserWindow.activeTab this returns current active tab object.
I want tab object for current activetab(solution is there) or deactivetab(how to get deactivetab object).
If you want a tab other than the active one, use safari.application.activeBrowserWindow.tabs. This is an array of all the active window's tabs.
safari.application.activeBrowserWindow.tabs[0] is the leftmost tab of the window.
Read the documentation.
精彩评论