IWebViewExecuteJavascriptWithResult Method (String)Awesomium.NET 1.7.6Awesomium.NET
Executes some JavaScript synchronously in the main frame of the page, and returns a result.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

JSValue ExecuteJavascriptWithResult(
	string script
)

Parameters

script
Type: SystemString
The string of JavaScript to execute.

Return Value

Type: JSValue
Returns the result (if any). Any JSObject returned from this method will be a remote proxy for an object contained within the view's process. If this call fails, the returned JSValue will have an Undefined type. (see IsUndefined). You can check GetLastError for more information about the failure.
Exceptions

ExceptionCondition
InvalidOperationException The member is called on an invalid view. (See: IsLive)
NotSupportedException The operation is not supported on a Developer Tools Inspector view (see: IsJavascriptEnabled).
NotSupportedException Javascript calls are not supported when Javascript is disabled (see: IsJavascriptEnabled).
InvalidOperationException The member is called from inside a synchronous Javascript Execution Context
InvalidOperationException Attempted to execute Javascript on the page, before the DOM is ready. Wait for the DocumentReady event before executing your Javascript.
See Also

Reference