
Espacio de nombres:
CodiumSDK.CPL.HTMLTagsEnsamblado: CodiumSDK.dll

Class that represent a “script” tag. The script tag is used to embed a client-side script (JavaScript).
Métodos
Constructores
| Nombre | Descripción |
|---|
 | Script() | Script |
 | Script(program, async, src, crossorigin, defer, integrity, type, innerHTML, style, className, id, title) | Constructor for script |
#GetAttribute(name)

Get Attribute
| C# |
| public CodiumSDK.CPL.HTMLAttribute GetAttribute(System.String name); |
Regresa
CodiumSDK.CPL.HTMLAttribute
Parámetros
| Nombre | Tipo | Descripción |
|---|
| name | System.String | Name of the Atrribute |
#Script()

Script
#Script(program, async, src, crossorigin, defer, integrity, type, innerHTML, style, className, id, title)

Constructor for script
| C# |
| public Script(CodiumSDK.CPL.ProgramDefinition program, System.Boolean async, System.String src, CodiumSDK.CPL.HTMLTags.Script.Crossorigin crossorigin, System.Boolean defer, System.String integrity, System.String type, System.String innerHTML, System.String style, System.String className, System.String id, System.String title); |
Parámetros
| Nombre | Tipo | Descripción |
|---|
| program | CodiumSDK.CPL.ProgramDefinition | Program Definition |
| async | System.Boolean | Specifies that the script is downloaded in parallel to parsing the page, and executed as soon as it is available (before parsing completes) (only for external scripts) |
| src | System.String | Specifies the URL of an external script file |
| crossorigin | CodiumSDK.CPL.HTMLTags.Script.Crossorigin | Sets the mode of the request to an HTTP CORS Request |
| defer | System.Boolean | Specifies that the script is downloaded in parallel to parsing the page, and executed after the page has finished parsing (only for external scripts) |
| integrity | System.String | Allows a browser to check the fetched script to ensure that the code is never loaded if the source has been manipulated |
| type | System.String | Specifies the media type of the script |
| innerHTML | System.String | Inner HTML |
| style | System.String | Specifies an inline CSS style for an element |
| className | System.String | Specifies one or more classnames for an element (refers to a class in a style sheet) |
| id | System.String | Specifies a unique id for an element |
| title | System.String | Specifies extra information about an element |