Allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user.

Technical details about this element can be found on the Official W3C reference

no subtypes hierarchy

Initializer
Script(String? src = null, ScriptType type = ..., String? id = null, String? charset = null, Boolean? async = null, Boolean? defer = null)
Parameters:
  • src = null

    Specifies the URL of an external script file.

  • type = javascript
  • id = null
  • charset = null

    Specifies the character encoding used in an external script file.

  • async = null

    Specifies that the script is executed asynchronously (only for external scripts).

  • defer = null

    Specifies that the script is executed when the page has finished parsing (only for external scripts).

Attributes
asyncSource Codeshared Boolean? async

Specifies that the script is executed asynchronously (only for external scripts).

attributesSource Codeshared actual default <String->Object>[] attributes
Refines Element.attributes ultimately refines Node.attributes
charsetSource Codeshared String? charset

Specifies the character encoding used in an external script file.

deferSource Codeshared Boolean? defer

Specifies that the script is executed when the page has finished parsing (only for external scripts).

srcSource Codeshared String? src

Specifies the URL of an external script file.

tagSource Codeshared actual Tag tag

The tag name and type.

Refines Node.tag
typeSource Codeshared ScriptType type
Inherited Attributes
Attributes inherited from: Element
Attributes inherited from: Object
Inherited Methods
Methods inherited from: Object