HTMLScriptElement class
HTML <script>
elements expose the interface, which provides
special properties and methods for manipulating the behavior and
execution of <script>
elements (beyond the inherited
HTMLElement interface).
JavaScript files should be served with the
application/javascript
MIME type, but browsers are lenient and
block them only if the script is served with an image type
(image/*
), video type (video/*
), audio type (audio/*
), or
text/csv
. If the script is blocked, its element receives an
error
event; otherwise, it receives a load
event.
EventTarget
Node
Element
HTMLElement
HTMLScriptElement
- Implemented types
- Available extensions
- PropsAnimatable
- PropsARIAMixin
- PropsChildNode
- PropsDocumentAndElementEventHandlers
- PropsElement
- PropsElementContentEditable
- PropsElementCSSInlineStyle
- PropsEventTarget
- PropsGeometryUtils
- PropsGlobalEventHandlers
- PropsHTMLAttributionSrcElementUtils
- PropsHTMLElement
- PropsHTMLOrSVGElement
- PropsHTMLScriptElement
- PropsInnerHTML
- PropsNode
- PropsNonDocumentTypeChildNode
- PropsParentNode
- PropsRegion
- PropsSlottable
- Annotations
-
- @JS()
- @staticInterop
Constructors
- HTMLScriptElement()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited