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

ActionTypeDe 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
JavaScriptDit is de JavaScript die wordt uitgevoerd wanneer de event plaatsvindt

Retourwaarden

0De opgegeven ActionType was niet geldig
1De JavaScript-code is toegevoegd