public interface BodyElement extends Element
HTMLBodyElement
) interface, which provides special properties (beyond the regular element
object interface they also have available to them by inheritance) for manipulating body elements.ALLOW_KEYBOARD_INPUT
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
Modifier and Type | Method and Description |
---|---|
String |
getALink()
Color of active hyperlinks.
|
String |
getBackground()
URI for a background image resource.
|
String |
getBgColor()
Background color for the document.
|
String |
getLink()
Color of unvisited links.
|
EventListener |
getOnbeforeunload()
Reflects the
onbeforeunload
HTML attribute value for a function to call when the document is about to be unloaded. |
EventListener |
getOnblur()
Exposes the
window.onblur
event handler to call when the window loses focus. |
EventListener |
getOnerror()
Exposes the
window.onerror
event handler to call when the document fails to load properly. |
EventListener |
getOnfocus()
Exposes the
window.onfocus
event handler to call when the window gains focus. |
EventListener |
getOnhashchange()
Reflects the
onhashchange
HTML attribute value for a function to call when the fragment identifier in the address of the document changes. |
EventListener |
getOnload()
Exposes the
window.onload
event handler to call when the window gains focus. |
EventListener |
getOnmessage()
Reflects the
onmessage
HTML attribute value for a function to call when the document receives a message. |
EventListener |
getOnoffline()
Reflects the
onoffline
HTML attribute value for a function to call when network communication fails. |
EventListener |
getOnonline()
Reflects the
ononline
HTML attribute value for a function to call when network communication is restored. |
EventListener |
getOnpopstate()
Reflects the
onpopstate
HTML attribute value for a function to call when the user has navigated session history. |
EventListener |
getOnresize()
Reflects the
onresize
HTML attribute value for a function to call when the document has been resized. |
EventListener |
getOnstorage()
Reflects the
onpopstate
HTML attribute value for a function to call when the storage area has changed. |
EventListener |
getOnunload()
Reflects the
onunload
HTML attribute value for a function to call when when the document is going away. |
String |
getText()
Foreground color of text.
|
String |
getVLink()
Color of visited links.
|
void |
setALink(String arg) |
void |
setBackground(String arg) |
void |
setBgColor(String arg) |
void |
setLink(String arg) |
void |
setOnbeforeunload(EventListener arg) |
void |
setOnblur(EventListener arg) |
void |
setOnerror(EventListener arg) |
void |
setOnfocus(EventListener arg) |
void |
setOnhashchange(EventListener arg) |
void |
setOnload(EventListener arg) |
void |
setOnmessage(EventListener arg) |
void |
setOnoffline(EventListener arg) |
void |
setOnonline(EventListener arg) |
void |
setOnpopstate(EventListener arg) |
void |
setOnresize(EventListener arg) |
void |
setOnstorage(EventListener arg) |
void |
setOnunload(EventListener arg) |
void |
setText(String arg) |
void |
setVLink(String arg) |
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
String getALink()
void setALink(String arg)
String getBackground()
URI for a background image resource.
void setBackground(String arg)
String getBgColor()
void setBgColor(String arg)
String getLink()
void setLink(String arg)
EventListener getOnbeforeunload()
onbeforeunload
HTML attribute value for a function to call when the document is about to be unloaded.void setOnbeforeunload(EventListener arg)
EventListener getOnblur()
Exposes the window.onblur
event handler to call when the window loses focus.
addEventListener()
to attach an event listener to the body element.void setOnblur(EventListener arg)
EventListener getOnerror()
Exposes the window.onerror
event handler to call when the document fails to load properly.
addEventListener()
to attach an event listener to the body element.getOnerror
in interface Element
void setOnerror(EventListener arg)
setOnerror
in interface Element
EventListener getOnfocus()
Exposes the window.onfocus
event handler to call when the window gains focus.
addEventListener()
to attach an event listener to the body element.getOnfocus
in interface Element
void setOnfocus(EventListener arg)
setOnfocus
in interface Element
EventListener getOnhashchange()
onhashchange
HTML attribute value for a function to call when the fragment identifier in the address of the document changes.void setOnhashchange(EventListener arg)
EventListener getOnload()
Exposes the window.onload
event handler to call when the window gains focus.
addEventListener()
to attach an event listener to the body element.void setOnload(EventListener arg)
EventListener getOnmessage()
onmessage
HTML attribute value for a function to call when the document receives a message.void setOnmessage(EventListener arg)
EventListener getOnoffline()
onoffline
HTML attribute value for a function to call when network communication fails.void setOnoffline(EventListener arg)
EventListener getOnonline()
ononline
HTML attribute value for a function to call when network communication is restored.void setOnonline(EventListener arg)
EventListener getOnpopstate()
onpopstate
HTML attribute value for a function to call when the user has navigated session history.void setOnpopstate(EventListener arg)
EventListener getOnresize()
onresize
HTML attribute value for a function to call when the document has been resized.void setOnresize(EventListener arg)
EventListener getOnstorage()
onpopstate
HTML attribute value for a function to call when the storage area has changed.void setOnstorage(EventListener arg)
EventListener getOnunload()
onunload
HTML attribute value for a function to call when when the document is going away.void setOnunload(EventListener arg)
String getText()
void setText(String arg)
String getVLink()
void setVLink(String arg)
Copyright © 2016. All rights reserved.