RunJavaScript(String) Method
Runs the given JavaScript code in the frame's context and returns the result.

C# Syntax

string RunJavaScript( 
   string scriptToRun
)

Parameters

scriptToRun
The JavaScript code to run.

Return Value

The result of running the JavaScript code as a string.