RunJavaScript<TResult>(String) Method
Runs the given JavaScript code in the frame's context and returns the result.
C# Syntax
TResult RunJavaScript<TResult>( 
   string scriptToRun
)

Parameters

scriptToRun
The JavaScript code to run

Type Parameters

TResult
The type of return value

Return Value

The result of running the JavaScript code converted to TResult