SetOpenActionJavaScriptA

Document properties, JavaScript

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetOpenActionJavaScript and string arguments are interpreted using the current SetAnsiMode code page

Use this function to run a block of JavaScript as the document is opened

Syntax

Delphi

Function DLSetOpenActionJavaScriptA(InstanceID: Integer; JavaScript: PAnsiChar): Integer;

DLL

int DLSetOpenActionJavaScriptA(int InstanceID, const char* JavaScript);

Parameters

JavaScriptThe JavaScript to use for this action

Return values

0The JavaScript could not be added
1The JavaScript was added successfully