ONLINE HELP WINDEV, WEBDEV AND WINDEV MOBILE
Version: 151617181920212223242526
Identifier of event,0 if an error occurred.
Name of WLanguage procedure that will be run when intercepting the event.This procedure can be a browser procedure global to the project or a browser procedure local to the page that contains the code currently run. This procedure must have the following format: PROCEDURE EventManagementProcedure(pclEventJS is object dynamic) When making the call, the pclEventJS parameter will be initialized with the JavaScript object of the browser event. This is the same object as the one handled or returned by JSInfoEvent.
Element on which the event will be managed. The possible values are:One of the following constants:jsEventWindowThe event is directed to the window ("window" object of DOM).jsEventDocumentThe event is directed to the document ("document" object of DOM).jsEventBodyThe event is directed to the BODY tag of HTML page.jsEventFormThe event is directed to the current form.A character string specifying one of the DOM objects (Document Object Model).A character string specifying the ID of one of the page HTML tags.The alias of a page control (..Alias)
Name of event to intercept.This value can be:a character string that indicates the event name.a preset constant:Versions 19 and laterjsEventBeforeUnloadNew in version 19jsEventBeforeUnloadjsEventBeforeUnloadThe event is triggered before unloading the page. Remark: You can allow the Web user to exit from the page by using the code: JSInfoEvent("returnValue") = "Message"RESULT "Message" The browser will display the message with the "Exit from the page" and "Stay on the page" buttons (or a variation according to the browser used).jsEventBlurThe event is triggered when the target object loses focus.jsEventChangeThe event is triggered whenever the target object is modified.jsEventClickThe event is triggered by a click on the target object.jsEventDoubleClickThe event is triggered by a double click on the target object.jsEventFocusThe event is triggered when the target object takes focus.Versions 16 and laterjsEventGestureChangeNew in version 16jsEventGestureChangejsEventGestureChangeThe event is triggered when the user changes the zoom of screen with his fingers (event managed during a display on a phone for example).Versions 16 and laterjsEventGestureEndNew in version 16jsEventGestureEndjsEventGestureEndThe event is triggered when the user stops the zoom of screen with his fingers (event managed during the display on a phone for example).Versions 16 and laterjsEventGestureStartNew in version 16jsEventGestureStartjsEventGestureStartThe event is triggered when the user starts the zoom of screen with 2 fingers (event managed during a display on a phone for example).jsEventKeyDownThe event is triggered when a key is pressed.jsEventKeyPressThe event is triggered when a key is pressed and released.jsEventKeyUpThe event is triggered when a key is released.jsEventLoadThe event is triggered at the end of load of HTML form.jsEventMouseDownThe event is triggered when a mouse button is pressed.Versions 23 and laterjsEventMouseEnterNew in version 23jsEventMouseEnterjsEventMouseEnterThe event is triggered when the mouse cursor enters the surface of target object. This event affects the target object only. Versions 23 and laterjsEventMouseLeaveNew in version 23jsEventMouseLeavejsEventMouseLeaveThe event is triggered when the mouse cursor leaves the surface of target object. This event affects the target object only. jsEventMouseMoveThe event is triggered whenever the mouse is moved.jsEventMouseOutThe event is triggered when the mouse cursor leaves the surface of target object. This event affects the target object or one of its children. jsEventMouseOverThe event is triggered when the mouse cursor enters the surface of target object. This event affects the target object or one of its children. jsEventMouseUpThe event is triggered when a mouse button is released.Versions 16 and laterjsEventOrientationChangeNew in version 16jsEventOrientationChangejsEventOrientationChangeThe event is triggered when the device orientation changes (event managed during a display on a phone for example).Versions 16 and laterjsEventTouchCancelNew in version 16jsEventTouchCanceljsEventTouchCancelThe event is triggered when the user cancels the action performed with his finger: displaying the popup menu for example (event managed during a display on a phone for example).Versions 16 and laterjsEventTouchEndNew in version 16jsEventTouchEndjsEventTouchEndThe event is triggered when the user removes his finger from the screen to end an action on the screen (event managed during a display on a phone for example).Versions 16 and laterjsEventTouchMoveNew in version 16jsEventTouchMovejsEventTouchMoveThe event is triggered when the user moves his finger on the screen (event managed during a display on a phone for example).Versions 16 and laterjsEventTouchStartNew in version 16jsEventTouchStartjsEventTouchStartThe event is triggered when the user touches the screen with one or 2 fingers (event managed during a display on a phone for example).jsEventResetThe event is triggered during a click on a "Reset" button.jsEventResizeThe event is triggered when the window is resized.jsEventScrollThe event is triggered whenever the browser window is scrolled.jsEventSelectThe event is triggered when selecting the target object.jsEventSubmitThe event is triggered during a click on a "Submit" button.jsEventUnloadThe event is triggered when unloading the HTML form (closing the browser or navigating toward another page).
Direction for intercepting the event.In browser code, an event can be intercepted during the capture or during the return. This parameter is used to specify when the function that processes the event will be called.The possible values are:jsEventCapture(Default value)The processing function is called when the event is captured by the target object.jsEventBubbleThe processing function is called when the event is returned in the target object.
Mechanism for propagating the events in a browser
Special cases
Differences between the Event and JSEvent functions
Last update: 08/25/2020
Send a report | Local help
Searching...
I accept the terms of the license agreement
All you have to do is configure your product as follows: