Package org.loboevolution.html.dom
Interface HTMLScriptElement
- All Superinterfaces:
Element
,EventTarget
,HTMLElement
,InnerHTML
,Node
,NonDocumentTypeChildNode
,ParentNode
- All Known Implementing Classes:
HTMLScriptElementImpl
HTML <script> elements expose the HTMLScriptElement interface,
which provides special properties and methods for manipulating the behavior and execution of <script>
elements (beyond the inherited HTMLElement interface).
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getCrossOrigin.getEvent()
Deprecated.Deprecated.getIntegrity.getReferrerPolicy.getSrc()
Retrieves the URL to an external file that contains the source code or data.getText()
Retrieves or sets the text of the object as a string.getType()
Sets or retrieves the MIME type for the associated scripting engine.isAsync()
isAsync.boolean
isDefer()
Sets or retrieves the status of the script.boolean
isNoModule.void
setAsync.void
setCharset
(String charset) setCharset.void
setCrossOrigin
(String crossOrigin) setCrossOrigin.void
setDefer
(boolean defer) setDefer.void
setEvent.void
setHtmlFor
(String htmlFor) setHtmlFor.void
setIntegrity
(String integrity) setIntegrity.void
setNoModule
(boolean noModule) setNoModule.void
setReferrerPolicy
(String referrerPolicy) setReferrerPolicy.void
setSrc.void
setText.void
setType.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttribute
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslate
Methods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTML
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
Methods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Method Details
-
isAsync
Boolean isAsync()isAsync.
- Returns:
- a boolean.
-
setAsync
setAsync.
- Parameters:
async
- a boolean.
-
getCharset
Deprecated.Sets or retrieves the character set used to encode the object.- Returns:
- a
String
object.
-
setCharset
setCharset.
- Parameters:
charset
- aString
object.
-
getCrossOrigin
String getCrossOrigin()getCrossOrigin.
- Returns:
- a
String
object.
-
setCrossOrigin
setCrossOrigin.
- Parameters:
crossOrigin
- aString
object.
-
isDefer
boolean isDefer()Sets or retrieves the status of the script.- Returns:
- a boolean.
-
setDefer
void setDefer(boolean defer) setDefer.
- Parameters:
defer
- a boolean.
-
getEvent
Deprecated.Sets or retrieves the event for which the script is written.- Returns:
- a
String
object.
-
setEvent
setEvent.
- Parameters:
event
- aString
object.
-
getHtmlFor
Deprecated.Sets or retrieves the object that is bound to the event script.- Returns:
- a
String
object.
-
setHtmlFor
setHtmlFor.
- Parameters:
htmlFor
- aString
object.
-
getIntegrity
String getIntegrity()getIntegrity.
- Returns:
- a
String
object.
-
setIntegrity
setIntegrity.
- Parameters:
integrity
- aString
object.
-
isNoModule
boolean isNoModule()isNoModule.
- Returns:
- a boolean.
-
setNoModule
void setNoModule(boolean noModule) setNoModule.
- Parameters:
noModule
- a boolean.
-
getReferrerPolicy
String getReferrerPolicy()getReferrerPolicy.
- Returns:
- a
String
object.
-
setReferrerPolicy
setReferrerPolicy.
- Parameters:
referrerPolicy
- aString
object.
-
getSrc
String getSrc()Retrieves the URL to an external file that contains the source code or data.- Returns:
- a
String
object.
-
setSrc
setSrc.
- Parameters:
src
- aString
object.
-
getText
String getText()Retrieves or sets the text of the object as a string.- Returns:
- a
String
object.
-
setText
setText.
- Parameters:
text
- aString
object.
-
getType
String getType()Sets or retrieves the MIME type for the associated scripting engine.- Returns:
- a
String
object.
-
setType
setType.
- Parameters:
type
- aString
object.
-