PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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. Therefore, JSInfoEvent can be used as 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 code line for example:
    IF JSInfoEvent() THEN ...
  • JSInfoEvent must not be used in the WEBDEV processes directly entered in JavaScript: use the Event object directly.
  • JSInfoEvent is not available:
    • in the browser procedures.
    • in the events directly or indirectly called from a browser procedure (via ExecuteProcess for example).
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment