PageJavaScriptActionA
JavaScript, Page properties
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to PageJavaScriptAction and string arguments are interpreted using the current SetAnsiMode code page
This function is used to add JavaScript to a page open or page close event.
Syntax
Delphi
Function DLPageJavaScriptActionA(InstanceID: Integer; ActionType, JavaScript: PAnsiChar): Integer;
DLL
int DLPageJavaScriptActionA(int InstanceID, const char * ActionType, const char * JavaScript);
Parameters
| ActionType | The event to add the JavaScript to: "O" = (capital letter O) This event occurs when the page is opened "C" = This event occurs when the page is closed |
|---|---|
| JavaScript | This is the JavaScript to execute when the event occurs. |
Return values
| 0 | The specified ActionType was not valid |
|---|---|
| 1 | The JavaScript was added successfully |