Espacio de nombres: CodiumSDK.CPL.HTMLTags
Ensamblado: CodiumSDK.dll

Class that represent a “script” tag. The script tag is used to embed a client-side script (JavaScript).
C#
public class Script : CodiumSDK.CPL.HTMLTagBase

Métodos

NombreDescripción
GetAttribute(name)Get Attribute

Constructores

NombreDescripció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

NombreTipoDescripción
nameSystem.StringName of the Atrribute

Script()

Script
C#
public 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

NombreTipoDescripción
programCodiumSDK.CPL.ProgramDefinitionProgram Definition
asyncSystem.BooleanSpecifies 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)
srcSystem.StringSpecifies the URL of an external script file
crossoriginCodiumSDK.CPL.HTMLTags.Script.CrossoriginSets the mode of the request to an HTTP CORS Request
deferSystem.BooleanSpecifies that the script is downloaded in parallel to parsing the page, and executed after the page has finished parsing (only for external scripts)
integritySystem.StringAllows a browser to check the fetched script to ensure that the code is never loaded if the source has been manipulated
typeSystem.StringSpecifies the media type of the script
innerHTMLSystem.StringInner HTML
styleSystem.StringSpecifies an inline CSS style for an element
classNameSystem.StringSpecifies one or more classnames for an element (refers to a class in a style sheet)
idSystem.StringSpecifies a unique id for an element
titleSystem.StringSpecifies extra information about an element