ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SecurityHtml (Property)
In french: SécuritéHtml
The property SecurityHtml property allows you to view and modify the security mechanism status of the following fields:
  • HTML Display controls.
  • HTML Editor controls.
The security mechanism of these types of controls blocks all the potentially dangerous content (plug-ins, ActiveX, JavaScript code, etc.).
Remarks:
  • It is also possible to manage the:
    • the HTML Display control via "Don't allow the execution of JavaScript scripts" ("Details" tab in the control description window). If this option is checked, the security mechanism is enabled.
    • the HTML Editor control via "Allow execution of JavaScript code in the edited document" ("General" tab in the control description window). The security mechanism is enabled if this option is unchecked.
  • "HTML Display control" is the new name of the HTML Edit control from version 25 and earlier.
Example
// Récupération d'un document sur Internet
HTTPRequest(gsURL)

// Activation du mécanisme de sécurité du champ d'affichage HTML
HTML_SaisieDoc.SécuritéHtml = secHtmlMaxi

// Initialisation du champ avec le document
HTM_SaisieDoc = HTTPGetResult()
Syntax

Determining if the security mechanism of an HTML control is enabled Hide the details

<Result> = <Control used>.SecurityHtml
<Result>: Boolean constant or Boolean
Current security mode:
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, etc.). No ActiveX control or plugin is displayed or run.
secHtmlNone (or False)The scripts are run. The ActiveX controls or plugins are displayed and run.
Note Scripts will not run in the field if the field's State property is set to Inactive or Grayed.
<Control used>: Control name
Name of the field to be manipulated:
  • HTML Display control.
  • HTML Editor control.

Enabling/disabling the security mechanism of HTML Edit controls Hide the details

<Control used>.SecurityHtml = <Value>
<Control used>: Control name
Name of the field to be manipulated:
  • HTML Display control.
  • HTML Editor control.
<Value>: Boolean constant or Boolean
Security mode to apply:
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, etc.). No ActiveX control or plugin is displayed or run.
secHtmlNone (or False)The scripts are run. The ActiveX controls or plugins are displayed and run.
Note Scripts will not run in the field if the field's State property is set to Inactive or Grayed.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help