ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
JSInfoEvent (Function)
In french: JSInfoEvénement
Allows you to handle the JavaScript properties of the browser event that triggered the code execution. Allows you to:
  • read a JavaScript property of the event.
  • assign a value to a JavaScript property of the event.
This function is an advanced function: a good knowledge of Javascript is required.
Example
// Read the position of the mouse during a click
nXPos is int = JSInfoEvent("customerX")
Syntax

Retrieving the value of an event property Hide the details

<Result> = JSInfoEvent([<Property>])
<Result>: Variant
Property value.
<Property>: Optional character string
Property to use. If this parameter is not specified, JSInfoEvent retrieves the object directly. JSInfoEvent can be used as an argument of a browser procedure written in JavaScript.

Modifying a property of the event Hide the details

JSInfoEvent(<Property>)
<Property>: Character string
Property to use.
Remarks
  • The "event" objects differ according to the browsers. Some properties are not available for all browsers.
  • The event that triggered the execution of the code may not be available. Before using this event, we recommend that you check its existence with the following line of code for example:
    IF JSInfoEvent() THEN ...
  • JSInfoEvent must not be used in WEBDEV processes directly entered in JavaScript: use the Event object directly.
  • JSInfoEvent is not available:
    • in browser procedures.
    • in the events directly or indirectly called from a browser procedure (via ExecuteProcess for example).
Component: WDJS.DLL
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help