You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files.
paramName
( optional enumerated Type array of paramType )
Undocumented.
Description of this parameter from the json schema.
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.
Parameters

Google Chrome Extensions (Labs)

experimental.webInspector.inspectedWindow

API reference: experimental.webInspector.inspectedWindow

Methods

eval

void experimental.webInspector.inspectedWindow.eval(, string expression, function callback)

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
( Type array of string )
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
( Type array of function )
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
( Type array of object )
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
( Type array of boolean )
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() {...});

Fired after DOMContentLoaded event on inspected page is fired.

Parameters

onLoaded

experimental.webInspector.inspectedWindow.onLoaded.addListener(function() {...});

Fired after load event on inspected page is fired.

Parameters

onNavigated

experimental.webInspector.inspectedWindow.onNavigated.addListener(function() {...});

Fired when navigation occurs in the window being inspected.

Parameters