tabs.getSelected
크롬 16 이후버전에서 공식적으로 제거된 기능입니다.
파이어폭스에서는 이용하실수 없습니다.
구버전기능이라고 보시면 됩니다.
tabs.query
//chrome
chrome.tabs.query({ currentWindow: true, active: true }, function(tabs){
//code: ex) tabs[0].id
});
//firefox
browser.tabs.query({ currentWindow: true, active: true }, function(tabs){
//code: ex) tabs[0].id
});
크롬 16 에서 tabs.getSelected가 제거되고 생긴 기능
Parameters | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object | queryInfo |
|
|||||||||||||||||||||||||||||||||||||||||||||
function | callback |
The callback parameter should be a function that looks like this: function(array of Tab result) {...};
|
chrome.tabs - Google Chrome
chrome.tabs.captureVisibleTab(integer windowId, object options, function callback) Captures the visible area of the currently active tab in the specified window. In order to call this method, the extension must have either the permission or the activeTab p
developer.chrome.com
'웹 프로그래밍 > HTML' 카테고리의 다른 글
HTML) Referrer 관리하기 <meta name="referrer"> (3) | 2019.11.26 |
---|---|
Javascript) encodeURI, decodeURI, encodeURIComponent, decodeURIComponent (0) | 2019.11.14 |
티스토리) Light-TT-EX 제거하기 (4) | 2019.11.12 |
JS) Location.hash 와 URL의 #부분 처리 (0) | 2019.10.27 |
Javascript) innerText vs innerHTML (0) | 2019.06.13 |
HTML) CSS 불러오기 (0) | 2019.05.29 |
HTML) 책갈피 만들기 (0) | 2019.05.26 |
HTTPS 홈페이지 무료로 운영하기 (0) | 2019.04.25 |
저작권 보호안내
무단 전재, 재배포 행위는 금지됩니다. (글을 복사하여 게시금지)
본문의 일부(링크용 문장) 인용은 가능하지만, 출처와 링크(a 태그)를 남기셔야 됩니다.
(웹툴을 이용하고, 스크린샷/녹화하는것은 상관없습니다.)
예외적으로. 저에게 허락받은 경우에는 본문을 전재할 수 있습니다.
만약, 본문 공유를 원하신다면 링크 공유를 해주세요
저작권 정책 확인하기링크 공유하기