|
|
|
|
|
- JSProperty handles the control aliases
JSProperty (Function) In french: JSPropriété Allows you to handle specific features on the objects found in the current page. Allows you to: - read the JavaScript property of an object found in the current page
- assign a value to the JavaScript property of an object found in the current page.
This is an advanced function, requiring a good knowledge of Javascript.
Info(JSProperty("_PAGE_." + SAI_Saisie1.Alias, "value"))
i is int
FOR i = 1 TO 3
JSProperty("_PAGE_.SAISIE" + i, "value") = "test"
END
Syntax
Retrieving the value of a property for a page element Hide the details
<Result> = JSProperty(<Full element name> , <Property>)
<Result>: Character string or integer Value of property for the element used. <Full element name>: Character string "JavaScript" name of element to use. In most cases, this name starts with "document.". You must use the aliases of controls. For more details, see Remarks. <Property>: Character string Property of the element to use.
Modifying a property of a page element Hide the details
JSProperty(<Full element name>, <Property>) = <New value>
<Full element name>: Character string "JavaScript" name of element to use. In most cases, this name starts with "document.". You must use the aliases of controls. For more details, see Remarks. <Property>: Character string Property of element to modify. <New value>: Character string or integer Value of property for the element to modify. Remarks JSProperty handles the control aliases To build the name of element name, you must know the control alias. This alias corresponds to the control name in the HTML page. To find out this alias: - in the code editor, press Shift + F11.
- use the Alias property.
Related Examples:
|
Unit examples (WEBDEV): HTMLClass property
[ + ] The property ..HTMLClass allows you to read and update the control's HTML attribute "class". This property lets you select the CSS Style applied on the control.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|