public class HTMLBodyElement extends HTMLElement
HTMLBodyElement
.HTMLElement.ProxyDomNode
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
HTMLBodyElement() |
Modifier and Type | Method and Description |
---|---|
void |
createEventHandlerFromAttribute(String attributeName,
String value)
Creates the event handler from the attribute value.
|
String |
getALink()
Returns the value of the
aLink attribute. |
String |
getBackground()
Returns the value of the
background attribute. |
String |
getBgColor()
Returns the value of the
bgColor attribute. |
int |
getClientWidth()
Returns the
clientWidth attribute. |
String |
getLink()
Returns the value of the
link attribute. |
HTMLElement |
getOffsetParent_js()
Returns this element's
offsetParent . |
org.htmlunit.corejs.javascript.Function |
getOnafterprint()
Returns the
onafterprint event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforeprint()
Returns the
onbeforeprint event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnbeforeunload()
Returns the
onbeforeunload event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnblur()
Returns the
onblur event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnerror()
Returns the
onerror event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnfocus()
Returns the
onfocus event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOngamepadconnected()
Returns the
ongamepadconnected event handler. |
org.htmlunit.corejs.javascript.Function |
getOngamepaddisconnected()
Returns the
ongamepaddisconnected event handler. |
org.htmlunit.corejs.javascript.Function |
getOnhashchange()
Returns the
onhashchange event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnlanguagechange()
Returns the
onlanguagechange event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnload()
Returns the
onload event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnmessage()
Returns the
onmessage event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnmessageerror()
Returns the
onmessageerror event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnoffline()
Returns the
onoffline event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnonline()
Returns the
ononline event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnpagehide()
Returns the
onpagehide event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnpageshow()
Returns the
onpageshow event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnpopstate()
Returns the
onpopstate event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnrejectionhandled()
Returns the
onrejectionhandled event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnresize()
Returns the
onresize event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnscroll()
Returns the
onscroll event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnstorage()
Returns the
onstorage event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnunhandledrejection()
Returns the
onunhandledrejection event handler for this element. |
org.htmlunit.corejs.javascript.Function |
getOnunload()
Returns the
onunload event handler for this element. |
String |
getText()
Returns the value of the
text attribute. |
String |
getVLink()
Returns the value of the
vLink attribute. |
protected boolean |
isEventHandlerOnWindow()
Is setting event handler property, at window-level.
|
void |
jsConstructor()
JavaScript constructor.
|
void |
setALink(String aLink)
Sets the value of the
aLink attribute. |
void |
setBackground(String background)
Sets the value of the
background attribute. |
void |
setBgColor(String bgColor)
Sets the value of the
bgColor attribute. |
void |
setLink(String link)
Sets the value of the
link attribute. |
void |
setOnafterprint(Object onafterprint)
Sets the
onafterprint event handler for this element. |
void |
setOnbeforeprint(Object onbeforeprint)
Sets the
onbeforeprint event handler for this element. |
void |
setOnbeforeunload(Object onbeforeunload)
Sets the
onbeforeunload event handler for this element. |
void |
setOnblur(Object handler)
Sets the
onblur event handler for this element. |
void |
setOnerror(Object handler)
Sets the
onerror event handler for this element. |
void |
setOnfocus(Object handler)
Sets the
onfocus event handler for this element. |
void |
setOngamepadconnected(Object gamepadconnected)
Sets the
ongamepadconnected event handler. |
void |
setOngamepaddisconnected(Object gamepaddisconnected)
Sets the
ongamepaddisconnected event handler. |
void |
setOnhashchange(Object onhashchange)
Sets the
onhashchange event handler for this element. |
void |
setOnlanguagechange(Object onlanguagechange)
Sets the
onlanguagechange event handler for this element. |
void |
setOnload(Object onload)
Sets the
onload event handler for this element. |
void |
setOnmessage(Object onmessage)
Sets the
onmessage event handler for this element. |
void |
setOnmessageerror(Object onmessageerror)
Sets the
onmessageerror event handler for this element. |
void |
setOnoffline(Object onoffline)
Sets the
onoffline event handler for this element. |
void |
setOnonline(Object ononline)
Sets the
ononline event handler for this element. |
void |
setOnpagehide(Object onpagehide)
Sets the
onpagehide event handler for this element. |
void |
setOnpageshow(Object onpageshow)
Sets the
onpageshow event handler for this element. |
void |
setOnpopstate(Object onpopstate)
Sets the
onpopstate event handler for this element. |
void |
setOnrejectionhandled(Object onrejectionhandled)
Sets the
onrejectionhandled event handler for this element. |
void |
setOnresize(Object onresize)
Sets the
onresize event handler for this element. |
void |
setOnscroll(Object onresize)
Sets the
onscroll event handler for this element. |
void |
setOnstorage(Object onstorage)
Sets the
onstorage event handler for this element. |
void |
setOnunhandledrejection(Object onunhandledrejection)
Sets the
onunhandledrejection event handler for this element. |
void |
setOnunload(Object onunload)
Sets the
onunload event handler for this element. |
void |
setText(String text)
Sets the value of the
text attribute. |
void |
setVLink(String vLink)
Sets the value of the
vLink attribute. |
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getAutofocus, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, getInnerText, getLang, getLocalName, getName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationcancel, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOngotpointercapture, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnscrollend, getOnseeked, getOnseeking, getOnselect, getOnselectionchange, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitioncancel, getOntransitionend, getOntransitionrun, getOntransitionstart, getOnvolumechange, getOnwaiting, getOnwheel, getOuterText, getParentHTMLElement, getPosX, getPosY, getPrefix, getStyle, getTabIndex, getTitle, getVAlign, getValue, getWidthOrHeight, isAncestorOfEventTarget, isDisabled, isEndTagForbidden, isHidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setEnterKeyHint, setHidden, setInnerText, setLang, setName, setOnabort, setOnanimationcancel, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOngotpointercapture, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnscrollend, setOnseeked, setOnseeking, setOnselect, setOnselectionchange, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitioncancel, setOntransitionend, setOntransitionrun, setOntransitionstart, setOnvolumechange, setOnwaiting, setOnwheel, setOuterText, setSpellcheck, setStyle, setTabIndex, setTextContent, setTitle, setVAlign, setValue, setWidthOrHeight, toString
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getHTML, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelector
after, append, appendChild, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void jsConstructor()
jsConstructor
in class HTMLElement
public void createEventHandlerFromAttribute(String attributeName, String value)
attributeName
- the attribute namevalue
- the valueprotected boolean isEventHandlerOnWindow()
isEventHandlerOnWindow
in class EventTarget
public HTMLElement getOffsetParent_js()
offsetParent
. The offsetLeft
and
offsetTop
attributes are relative to the offsetParent
.getOffsetParent_js
in class HTMLElement
offsetParent
. This may be undefined
when this node is
not attached or null
for body
.public String getALink()
aLink
attribute.aLink
attributepublic void setALink(String aLink)
aLink
attribute.aLink
- the value of the aLink
attributepublic String getBackground()
background
attribute.background
attributepublic void setBackground(String background)
background
attribute.background
- the value of the background
attributepublic String getBgColor()
bgColor
attribute.bgColor
attributepublic void setBgColor(String bgColor)
bgColor
attribute.bgColor
- the value of the bgColor
attributepublic String getLink()
link
attribute.link
attributepublic void setLink(String link)
link
attribute.link
- the value of the link
attributepublic String getText()
text
attribute.text
attributepublic void setText(String text)
text
attribute.text
- the value of the text
attributepublic String getVLink()
vLink
attribute.vLink
attributepublic void setVLink(String vLink)
vLink
attribute.vLink
- the value of the vLink
attributepublic int getClientWidth()
clientWidth
attribute.getClientWidth
in class Element
clientWidth
attributepublic org.htmlunit.corejs.javascript.Function getOnload()
onload
event handler for this element.getOnload
in class HTMLElement
onload
event handler for this elementpublic void setOnload(Object onload)
onload
event handler for this element.setOnload
in class HTMLElement
onload
- the onload
event handler for this elementpublic void setOnblur(Object handler)
onblur
event handler for this element.setOnblur
in class HTMLElement
handler
- the onblur
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnblur()
onblur
event handler for this element.getOnblur
in class HTMLElement
onblur
event handler for this elementpublic void setOnfocus(Object handler)
onfocus
event handler for this element.setOnfocus
in class HTMLElement
handler
- the onfocus
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnfocus()
onfocus
event handler for this element.getOnfocus
in class HTMLElement
onfocus
event handler for this elementpublic void setOnerror(Object handler)
onerror
event handler for this element.setOnerror
in class HTMLElement
handler
- the onerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnerror()
onerror
event handler for this element.getOnerror
in class HTMLElement
onerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforeunload()
onbeforeunload
event handler for this element.onbeforeunload
event handler for this elementpublic void setOnbeforeunload(Object onbeforeunload)
onbeforeunload
event handler for this element.onbeforeunload
- the onbeforeunload
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOngamepadconnected()
ongamepadconnected
event handler.ongamepadconnected
event handlerpublic void setOngamepadconnected(Object gamepadconnected)
ongamepadconnected
event handler.gamepadconnected
- the ongamepadconnected
event handlerpublic org.htmlunit.corejs.javascript.Function getOngamepaddisconnected()
ongamepaddisconnected
event handler.ongamepaddisconnected
event handlerpublic void setOngamepaddisconnected(Object gamepaddisconnected)
ongamepaddisconnected
event handler.gamepaddisconnected
- the ongamepaddisconnected
event handlerpublic org.htmlunit.corejs.javascript.Function getOnhashchange()
onhashchange
event handler for this element.onhashchange
event handler for this elementpublic void setOnhashchange(Object onhashchange)
onhashchange
event handler for this element.onhashchange
- the onhashchange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnlanguagechange()
onlanguagechange
event handler for this element.onlanguagechange
event handler for this elementpublic void setOnlanguagechange(Object onlanguagechange)
onlanguagechange
event handler for this element.onlanguagechange
- the onlanguagechange
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmessage()
onmessage
event handler for this element.onmessage
event handler for this elementpublic void setOnmessage(Object onmessage)
onmessage
event handler for this element.onmessage
- the onmessage
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnoffline()
onoffline
event handler for this element.onoffline
event handler for this elementpublic void setOnoffline(Object onoffline)
onoffline
event handler for this element.onoffline
- the onoffline
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnonline()
ononline
event handler for this element.ononline
event handler for this elementpublic void setOnonline(Object ononline)
ononline
event handler for this element.ononline
- the ononline
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpagehide()
onpagehide
event handler for this element.onpagehide
event handler for this elementpublic void setOnpagehide(Object onpagehide)
onpagehide
event handler for this element.onpagehide
- the onpagehide
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpageshow()
onpageshow
event handler for this element.onpageshow
event handler for this elementpublic void setOnpageshow(Object onpageshow)
onpageshow
event handler for this element.onpageshow
- the onpageshow
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnpopstate()
onpopstate
event handler for this element.onpopstate
event handler for this elementpublic void setOnpopstate(Object onpopstate)
onpopstate
event handler for this element.onpopstate
- the onpopstate
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnrejectionhandled()
onrejectionhandled
event handler for this element.onrejectionhandled
event handler for this elementpublic void setOnrejectionhandled(Object onrejectionhandled)
onrejectionhandled
event handler for this element.onrejectionhandled
- the onrejectionhandled
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnstorage()
onstorage
event handler for this element.onstorage
event handler for this elementpublic void setOnstorage(Object onstorage)
onstorage
event handler for this element.onstorage
- the onstorage
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnunhandledrejection()
onunhandledrejection
event handler for this element.onunhandledrejection
event handler for this elementpublic void setOnunhandledrejection(Object onunhandledrejection)
onunhandledrejection
event handler for this element.onunhandledrejection
- the onunhandledrejection
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnunload()
onunload
event handler for this element.onunload
event handler for this elementpublic void setOnunload(Object onunload)
onunload
event handler for this element.onunload
- the onunload
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnafterprint()
onafterprint
event handler for this element.onafterprint
event handler for this elementpublic void setOnafterprint(Object onafterprint)
onafterprint
event handler for this element.onafterprint
- the onafterprint
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnbeforeprint()
onbeforeprint
event handler for this element.onbeforeprint
event handler for this elementpublic void setOnbeforeprint(Object onbeforeprint)
onbeforeprint
event handler for this element.onbeforeprint
- the onbeforeprint
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnmessageerror()
onmessageerror
event handler for this element.onmessageerror
event handler for this elementpublic void setOnmessageerror(Object onmessageerror)
onmessageerror
event handler for this element.onmessageerror
- the onmessageerror
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnresize()
onresize
event handler for this element.getOnresize
in class HTMLElement
onresize
event handler for this elementpublic void setOnresize(Object onresize)
onresize
event handler for this element.setOnresize
in class HTMLElement
onresize
- the onresize
event handler for this elementpublic org.htmlunit.corejs.javascript.Function getOnscroll()
onscroll
event handler for this element.getOnscroll
in class HTMLElement
onscroll
event handler for this elementpublic void setOnscroll(Object onresize)
onscroll
event handler for this element.setOnscroll
in class HTMLElement
onresize
- the onscroll
event handler for this elementCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.