PageJavaScriptAction
JavaScript, Page properties
Description
This function is used to add JavaScript to a page open or page close event.
Syntax
Delphi
Function TPDFlib.PageJavaScriptAction(Const ActionType, JavaScript: WideString): Integer;
ActiveX
Function PDFlib::PageJavaScriptAction(ActionType As String, JavaScript As String) As Long
DLL
int DLPageJavaScriptAction(int InstanceID, const wchar_t * ActionType, const wchar_t * 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 |