PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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

Finding out 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 into 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