ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The CodeJS property is used to read and change the JavaScript code associated with a Web Component control.
Example
Trace(CMP_MyWebComponent.CodeJS)
Syntax

Getting the JavaScript code associated with the Web Component control Hide the details

<Result> = <Web Component control>.CodeJS
<Result>: Character string
JavaScript code associated with the Web Component control. This JavaScript code will be written to the page.
<Web Component control>: Control name
Name of the Web Component control to be used.

Modifying the JavaScript code associated with the Web Component control Hide the details

<Web Component control>.CodeJS = <JavaScript code>
<Web Component control>: Control name
Name of the Web Component control to be used.
<JavaScript code>: Character string
New JavaScript code associated with the control.
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 09/19/2023

Send a report | Local help