开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜