[This is preliminary documentation and is subject to change.]

Executes some JavaScript synchronously in the main frame of the page, and returns a result.

Namespace: Awesomium.Windows.Forms
Assembly: Awesomium.Windows.Forms (in Awesomium.Windows.Forms.dll) Version: 1.7.0.3 (1.7.0.3)

Syntax

C#
public JSValue ExecuteJavascriptWithResult(
	string script
)
Visual Basic
Public Function ExecuteJavascriptWithResult ( _
	script As String _
) As JSValue
Visual C++
public:
virtual JSValue ExecuteJavascriptWithResult(
	String^ script
) sealed

Parameters

script
Type: System..::..String
The string of JavaScript to execute.

Return Value

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.

Implements

IWebView..::..ExecuteJavascriptWithResult(String)

Exceptions

ExceptionCondition
System..::..InvalidOperationException The member is called on an invalid view. (See: IsLive)

See Also