experimental.webInspector.inspectedWindow
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
API reference: experimental.webInspector.inspectedWindow
Properties
getLastError
chrome.extensionlastError
Methods
eval
void
experimental.webInspector.inspectedWindow.eval(, string
expression, function
callback)
Undocumented.
Evaluates a JavaScript expression in the context of inspected page (NOTE: the expression must evaluate to a JSON-compliant object, otherwise the exception is thrown)
Parameters
-
expression
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- An expression to evaluate.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
- A function called when evaluation completes.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(object result, boolean isException) {...};
-
result
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
- The result of evaluation
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
-
isException
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- Set if an exception was caught while evaluating the expression
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
-
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
onDOMContentLoaded
experimental.webInspector.inspectedWindow.onDOMContentLoaded.addListener(function() {...});
Undocumented.
Fired after DOMContentLoaded event on inspected page is fired.
onLoaded
experimental.webInspector.inspectedWindow.onLoaded.addListener(function() {...});
Undocumented.
Fired after load event on inspected page is fired.
onNavigated
experimental.webInspector.inspectedWindow.onNavigated.addListener(function() {...});
Undocumented.
Fired when navigation occurs in the window being inspected.