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 Document property is used to identify or modify the HTML document associated with an HTML Display control or an HTML Editor control.
Example
// Retrieve the HTML code of the Body
sHTMLCode is string = HTM_MyDocument.Document.Body.OuterHTML
Syntax

Identifying the HTML document Hide the details

<Result> = <Control used>.Document
<Result>: htmlDocument variable
htmlDocument variable that contains the HTML document associated with the control.
<Control used>: Control name
Name of the control used:
  • HTML Display control.
  • HTML Editor control.

Modifying the HTML document associated with an HTML Display control Hide the details

<Control used>.Document = <HTML document>
<Control used>: Control name
Name of the control used:
  • HTML Display control.
  • HTML Editor control.
<HTML document>: htmlDocument variable
Name of the htmlDocument variable that contains the HTML document associated with the control.
Remarks
  • This property returns a copy of the document.
  • The changes made to this copy will not be reflected in the control.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help