Official Content

Manages the Javascript references present in the generated HTML document header for the object.

Description

The Javascript references are managed using a collection of Javascript files. Clear, Add and Item methods are available in addition to the Count property.

Example

This line in the GeneXus object

Form.JScriptSrc.Add('example.js')

will generate the following line in the generated HTML document header

<script type="text/javascript" src="example.js"></script>

When smooth is enabled the generation is as follows, the data-gx-external-script attribute force the script to be included in every refresh.:

<script type="text/javascript" src="example.js" data-gx-external-script></script>

Scope

Objects: Transactions, Web Panels
Controls: Forms
Generators: :NET Core, .NET, Java

See Also

HeaderRawHTML Property
Meta Property
MetaEquiv Property








Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant