chrome.search
- Description
Use the
chrome.search
API to search via the default provider. - Permissions
search
Summary
- Types
- Methods
Types
QueryInfo
Properties
- dispositionDisposition optional
Location where search results should be displayed.
CURRENT_TAB
is the default. - tabIdnumber optional
Location where search results should be displayed.
tabId
cannot be used with
disposition
. - textstring
String to query with the default search provider.
Disposition
Enum
"CURRENT_TAB"
, "NEW_TAB"
, or "NEW_WINDOW"
Methods
query
chrome.search.query(queryInfo: QueryInfo, callback: function)
Used to query the default search provider. In case of an error, runtime.lastError
will be set.
Parameters
- queryInfo
- callbackfunction
The callback parameter should be a function that looks like this:
() => {...}