scripting.InjectionTarget
This object contains details specifying the injection target for CSS and JavaScript. Its used in scripting.executeScript()
, scripting.insertCSS()
, and scripting.removeCSS()
.
Type
Values of this type are objects. They contain these properties:
allFrames
Optional-
boolean
. Whether the script or CSS is injected into all frames within the tab. Defaults tofalse
. Cannot betrue
ifframeIds
is specified. frameIds
Optional-
array
ofnumber
. Array of the IDs of the frames to inject into. tabId
-
number
. The ID of the tab to inject into.
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
InjectionTarget |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Note:
This API is based on Chromium's chrome.scripting
API.