PageJavaScriptAction
JavaScript, pagina-eigenschappen
Beschrijving
Deze functie wordt gebruikt om JavaScript toe te voegen aan een page open- of page close-event
Syntaxis
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 | De event waaraan de JavaScript wordt toegevoegd: "O" = (hoofdletter O) Deze event treedt op wanneer de pagina wordt geopend "C" = Deze event treedt op wanneer de pagina wordt gesloten |
|---|---|
| JavaScript | Dit is de JavaScript die wordt uitgevoerd wanneer de event plaatsvindt |
Retourwaarden
| 0 | De opgegeven ActionType was niet geldig |
|---|---|
| 1 | De JavaScript-code is toegevoegd |