New to Telerik Document ProcessingStart a free 30-day trial

Execute JavaScript in response to user interactions or document events during PDF viewing.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Actions

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class JavaScriptAction : Action

Inheritance: objectActionJavaScriptAction

Constructors

Create an empty JavaScript action.

C#
public JavaScriptAction()

Create a JavaScript action with the provided script.

C#
public JavaScriptAction(string script)
Parameters:scriptstring

The JavaScript code to execute when this action is triggered.

Properties

Gets or sets the JavaScript source executed when the action runs.

C#
public string Script { get; set; }
Property Value:

The JavaScript source code as a string.