Interface ScriptElement
- All Superinterfaces:
 DomQueryable,Element,EventTarget,Node
Script element for adding functionality to Delphi pages with JavaScript.
 
Notes
- 
     Once a script element is added, it will be executed immediately. Unless the DOM is
     currently being loaded, and 
isDeferred()returns true. - 
     Removing a script element from the DOM tree does nothing. Similarly, removing its content
     or its 
srcattribute after the script has been loaded and executed also does nothing. - The JavaScript VM is only closed when the page is closed.
 
- 
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet the script source.@Nullable ResourcePathGet the full source path of the script source file.booleanGet the value of theAttributes.DEFERattribute.Methods inherited from interface com.juliewoolie.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface com.juliewoolie.dom.Element
appendChild, appendElement, appendText, canHaveChildren, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getClassName, getCurrentStyle, getId, getStyle, getTagName, getTextContent, getTitleNode, getTooltip, getTooltipBehaviour, getTooltipDelay, hasAttribute, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeAttribute, removeChild, removeChild, removeMatchingChildren, replaceChild, replaceChild, setAttribute, setClassName, setId, setTextContent, setTitleNode, setTooltipBehaviour, setTooltipDelayMethods inherited from interface com.juliewoolie.dom.event.EventTarget
addEventListener, dispatchEvent, getOnAddAttribute, getOnAddOption, getOnAppendChild, getOnAttributeChange, getOnClick, getOnClosing, getOnInput, getOnLoaded, getOnMouseEnter, getOnMouseExit, getOnMouseMove, getOnOptionChange, getOnRemoveAttribute, getOnRemoveChild, getOnRemoveOption, getOnRightClick, getOnSetAttribute, getOnSetOption, getOnSpawned, onAddAttribute, onAddOption, onAppendChild, onAttributeChange, onClick, onClosing, onInput, onLoaded, onMouseEnter, onMouseExit, onMouseMove, onOptionChange, onRemoveAttribute, onRemoveChild, onRemoveOption, onRightClick, onSetAttribute, onSetOption, onSpawned, removeEventListenerMethods inherited from interface com.juliewoolie.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getRenderingBounds, getSiblingIndex, hasFlag, nextSibling, previousSibling 
- 
Method Details
- 
getSource
Get the script source.Shorthand for accessing the
Attributes.SOURCEattribute.- Returns:
 - Script source
 
 - 
getSourcePath
Get the full source path of the script source file.- Returns:
 - Script source path
 
 - 
isDeferred
boolean isDeferred()Get the value of theAttributes.DEFERattribute.- Returns:
 true, if the defer attribute was set to true,falseotherwise.
 
 -