开发者

How to get tab object not a active tab object for safari browser?

开发者 https://www.devze.com 2023-03-24 18:21 出处:网络
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

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

精彩评论

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