public class HTMLBodyElement extends HTMLElement
HTMLBodyElement.HTMLElement.ProxyDomNodeBEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGEATTRIBUTE_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| Constructor and Description |
|---|
HTMLBodyElement()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createEventHandlerFromAttribute(String attributeName,
String value)
Creates the event handler from the attribute value.
|
TextRange |
createTextRange()
Creates a new TextRange object for this element.
|
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.
|
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnafterprint()
Returns the
onafterprint event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforeprint()
Returns the
onbeforeprint event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforeunload()
Returns the
onbeforeunload event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnhashchange()
Returns the
onhashchange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnlanguagechange()
Returns the
onlanguagechange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmessage()
Returns the
onmessage event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmessageerror()
Returns the
onmessageerror event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnoffline()
Returns the
onoffline event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnonline()
Returns the
ononline event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpagehide()
Returns the
onpagehide event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpageshow()
Returns the
onpageshow event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpopstate()
Returns the
onpopstate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnrejectionhandled()
Returns the
onrejectionhandled event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnresize()
Returns the
onresize event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnstorage()
Returns the
onstorage event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnunhandledrejection()
Returns the
onunhandledrejection event handler for this element. |
net.sourceforge.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 |
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 |
setDefaults(ComputedCSSStyleDeclaration style)
Callback method which allows different HTML element types to perform custom
initialization of computed styles.
|
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 |
setOnhashchange(Object onhashchange)
Sets the
onhashchange event handler for this element. |
void |
setOnlanguagechange(Object onlanguagechange)
Sets the
onlanguagechange 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 |
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. |
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, contains, doComponentRequest, focus, getAccessKey, getAlign, getAttributeNode, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getColorDepth, getComponentVersion, getContentEditable, getCpuClass, getCurrentStyle, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getHeight, getId, getInnerHTML, getInnerText, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOnabort, getOnactivate, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnbeforeactivate, getOnbeforecopy, getOnbeforecut, getOnbeforedeactivate, getOnbeforepaste, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndeactivate, getOndrag, getOndragend, getOndragenter, getOndragexit, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOngotpointercapture, getOnhelp, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadend, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnmscontentzoom, getOnmsmanipulationstatechanged, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnscroll, getOnseeked, getOnseeking, getOnselect, getOnselectstart, getOnshow, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitionend, getOnvolumechange, getOnwaiting, getOnwebkitanimationend, getOnwebkitanimationiteration, getOnwebkitanimationstart, getOnwebkittransitionend, getOnwheel, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getRuntimeStyle, getStyle, getSystemLanguage, getTabIndex, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isCookieEnabled, isDisabled, isEndTagForbidden, isHidden, isHomePage, isIsContentEditable, isJavaEnabled, isLowerCaseInOuterHtml, isSpellcheck, mergeAttributes, navigateHomePage, readAttributes, releaseCapture, removeBehavior, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setHidden, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setOnabort, setOnactivate, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforepaste, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragexit, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOngotpointercapture, setOnhelp, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadend, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnmscontentzoom, setOnmsmanipulationstatechanged, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnscroll, setOnseeked, setOnseeking, setOnselect, setOnselectstart, setOnshow, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitionend, setOnvolumechange, setOnwaiting, setOnwebkitanimationend, setOnwebkitanimationiteration, setOnwebkitanimationstart, setOnwebkittransitionend, setOnwheel, setOuterHTML, setSpellcheck, setStyle, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringafter, before, createAttributesObject, createEventHandler, get, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientRects, getClientTop, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnmsgesturechange, getOnmsgesturedoubletap, getOnmsgestureend, getOnmsgesturehold, getOnmsgesturestart, getOnmsgesturetap, getOnmsgotpointercapture, getOnmsinertiastart, getOnmslostpointercapture, getOnmspointercancel, getOnmspointerdown, getOnmspointerenter, getOnmspointerleave, getOnmspointermove, getOnmspointerout, getOnmspointerover, getOnmspointerup, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributeNS, hasAttributes, isDisplayNone, matches, mozMatchesSelector, msMatchesSelector, printChildren, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceWith, scrollIntoViewIfNeeded, setAttributeNode, setAttributeNS, setOnmsgesturechange, setOnmsgesturedoubletap, setOnmsgestureend, setOnmsgesturehold, setOnmsgesturestart, setOnmsgesturetap, setOnmsgotpointercapture, setOnmsinertiastart, setOnmslostpointercapture, setOnmspointercancel, setOnmspointerdown, setOnmspointerenter, setOnmspointerleave, setOnmspointermove, setOnmspointerout, setOnmspointerover, setOnmspointerup, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setScrollLeft, setScrollTop, webkitMatchesSelectorappendChild, asJavaScriptException, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandlerclone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, 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, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void createEventHandlerFromAttribute(String attributeName, String value)
attributeName - the attribute namevalue - the valueprotected boolean isEventHandlerOnWindow()
isEventHandlerOnWindow in class EventTargetpublic void setDefaults(ComputedCSSStyleDeclaration style)
setDefaults in class Elementstyle - the style to initializepublic HTMLElement getOffsetParent_js()
getOffsetParent_js in class HTMLElementundefined 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 ElementclientWidth attributepublic TextRange createTextRange()
createTextRange in class Elementpublic net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.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 net.sourceforge.htmlunit.corejs.javascript.Function getOnresize()
onresize event handler for this element.getOnresize in class HTMLElementonresize event handler for this elementpublic void setOnresize(Object onresize)
onresize event handler for this element.setOnresize in class HTMLElementonresize - the onresize event handler for this elementCopyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.