Class HTMLBodyElement
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.EventTarget
org.htmlunit.javascript.host.dom.Node
org.htmlunit.javascript.host.Element
org.htmlunit.javascript.host.html.HTMLElement
org.htmlunit.javascript.host.html.HTMLBodyElement
- All Implemented Interfaces:
Serializable
,Cloneable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
The JavaScript object
HTMLBodyElement
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.javascript.host.html.HTMLElement
HTMLElement.ProxyDomNode
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
-
Field Summary
Fields inherited from class org.htmlunit.javascript.host.dom.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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createEventHandlerFromAttribute
(String attributeName, String value) Creates the event handler from the attribute value.getALink()
Returns the value of theaLink
attribute.Returns the value of thebackground
attribute.Returns the value of thebgColor
attribute.int
Returns theclientWidth
attribute.getLink()
Returns the value of thelink
attribute.Returns this element'soffsetParent
.org.htmlunit.corejs.javascript.Function
Returns theonafterprint
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonbeforeprint
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonbeforeunload
event handler for this element.Returns theonblur
event handler for this element.Returns theonerror
event handler for this element.Returns theonfocus
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theongamepadconnected
event handler.org.htmlunit.corejs.javascript.Function
Returns theongamepaddisconnected
event handler.org.htmlunit.corejs.javascript.Function
Returns theonhashchange
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonlanguagechange
event handler for this element.Returns theonload
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmessage
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonmessageerror
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonoffline
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theononline
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpagehide
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpageshow
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonpopstate
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonrejectionhandled
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonresize
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonscroll
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonstorage
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonunhandledrejection
event handler for this element.org.htmlunit.corejs.javascript.Function
Returns theonunload
event handler for this element.getText()
Returns the value of thetext
attribute.getVLink()
Returns the value of thevLink
attribute.protected boolean
Is setting event handler property, at window-level.void
JavaScript constructor.void
Sets the value of theaLink
attribute.void
setBackground
(String background) Sets the value of thebackground
attribute.void
setBgColor
(String bgColor) Sets the value of thebgColor
attribute.void
Sets the value of thelink
attribute.void
setOnafterprint
(Object onafterprint) Sets theonafterprint
event handler for this element.void
setOnbeforeprint
(Object onbeforeprint) Sets theonbeforeprint
event handler for this element.void
setOnbeforeunload
(Object onbeforeunload) Sets theonbeforeunload
event handler for this element.void
Sets theonblur
event handler for this element.void
setOnerror
(Object handler) Sets theonerror
event handler for this element.void
setOnfocus
(Object handler) Sets theonfocus
event handler for this element.void
setOngamepadconnected
(Object gamepadconnected) Sets theongamepadconnected
event handler.void
setOngamepaddisconnected
(Object gamepaddisconnected) Sets theongamepaddisconnected
event handler.void
setOnhashchange
(Object onhashchange) Sets theonhashchange
event handler for this element.void
setOnlanguagechange
(Object onlanguagechange) Sets theonlanguagechange
event handler for this element.void
Sets theonload
event handler for this element.void
setOnmessage
(Object onmessage) Sets theonmessage
event handler for this element.void
setOnmessageerror
(Object onmessageerror) Sets theonmessageerror
event handler for this element.void
setOnoffline
(Object onoffline) Sets theonoffline
event handler for this element.void
setOnonline
(Object ononline) Sets theononline
event handler for this element.void
setOnpagehide
(Object onpagehide) Sets theonpagehide
event handler for this element.void
setOnpageshow
(Object onpageshow) Sets theonpageshow
event handler for this element.void
setOnpopstate
(Object onpopstate) Sets theonpopstate
event handler for this element.void
setOnrejectionhandled
(Object onrejectionhandled) Sets theonrejectionhandled
event handler for this element.void
setOnresize
(Object onresize) Sets theonresize
event handler for this element.void
setOnscroll
(Object onresize) Sets theonscroll
event handler for this element.void
setOnstorage
(Object onstorage) Sets theonstorage
event handler for this element.void
setOnunhandledrejection
(Object onunhandledrejection) Sets theonunhandledrejection
event handler for this element.void
setOnunload
(Object onunload) Sets theonunload
event handler for this element.void
Sets the value of thetext
attribute.void
Sets the value of thevLink
attribute.Methods inherited from class org.htmlunit.javascript.host.html.HTMLElement
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
Methods inherited from class org.htmlunit.javascript.host.Element
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, innerHTML, 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
Methods inherited from class org.htmlunit.javascript.host.dom.Node
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, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, 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
-
Constructor Details
-
HTMLBodyElement
public HTMLBodyElement()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.- Overrides:
jsConstructor
in classHTMLElement
-
createEventHandlerFromAttribute
Creates the event handler from the attribute value. This has to be done no matter which browser is simulated to handle ill-formed HTML code with many body (possibly generated) elements.- Parameters:
attributeName
- the attribute namevalue
- the value
-
isEventHandlerOnWindow
protected boolean isEventHandlerOnWindow()Is setting event handler property, at window-level.- Overrides:
isEventHandlerOnWindow
in classEventTarget
- Returns:
- whether the event handler to be set at window-level
-
getOffsetParent_js
Returns this element'soffsetParent
. TheoffsetLeft
andoffsetTop
attributes are relative to theoffsetParent
.- Overrides:
getOffsetParent_js
in classHTMLElement
- Returns:
- this element's
offsetParent
. This may beundefined
when this node is not attached ornull
forbody
. - See Also:
-
getALink
Returns the value of theaLink
attribute.- Returns:
- the value of the
aLink
attribute - See Also:
-
setALink
Sets the value of theaLink
attribute.- Parameters:
aLink
- the value of theaLink
attribute- See Also:
-
getBackground
Returns the value of thebackground
attribute.- Returns:
- the value of the
background
attribute - See Also:
-
setBackground
Sets the value of thebackground
attribute.- Parameters:
background
- the value of thebackground
attribute- See Also:
-
getBgColor
Returns the value of thebgColor
attribute.- Returns:
- the value of the
bgColor
attribute - See Also:
-
setBgColor
Sets the value of thebgColor
attribute.- Parameters:
bgColor
- the value of thebgColor
attribute- See Also:
-
getLink
Returns the value of thelink
attribute.- Returns:
- the value of the
link
attribute - See Also:
-
setLink
Sets the value of thelink
attribute.- Parameters:
link
- the value of thelink
attribute- See Also:
-
getText
Returns the value of thetext
attribute.- Returns:
- the value of the
text
attribute - See Also:
-
setText
Sets the value of thetext
attribute.- Parameters:
text
- the value of thetext
attribute- See Also:
-
getVLink
Returns the value of thevLink
attribute.- Returns:
- the value of the
vLink
attribute - See Also:
-
setVLink
Sets the value of thevLink
attribute.- Parameters:
vLink
- the value of thevLink
attribute- See Also:
-
getClientWidth
public int getClientWidth()Returns theclientWidth
attribute.- Overrides:
getClientWidth
in classElement
- Returns:
- the
clientWidth
attribute
-
getOnload
Returns theonload
event handler for this element.- Overrides:
getOnload
in classHTMLElement
- Returns:
- the
onload
event handler for this element
-
setOnload
Sets theonload
event handler for this element.- Overrides:
setOnload
in classHTMLElement
- Parameters:
onload
- theonload
event handler for this element
-
setOnblur
Sets theonblur
event handler for this element.- Overrides:
setOnblur
in classHTMLElement
- Parameters:
handler
- theonblur
event handler for this element
-
getOnblur
Returns theonblur
event handler for this element.- Overrides:
getOnblur
in classHTMLElement
- Returns:
- the
onblur
event handler for this element
-
setOnfocus
Sets theonfocus
event handler for this element.- Overrides:
setOnfocus
in classHTMLElement
- Parameters:
handler
- theonfocus
event handler for this element
-
getOnfocus
Returns theonfocus
event handler for this element.- Overrides:
getOnfocus
in classHTMLElement
- Returns:
- the
onfocus
event handler for this element
-
setOnerror
Sets theonerror
event handler for this element.- Overrides:
setOnerror
in classHTMLElement
- Parameters:
handler
- theonerror
event handler for this element
-
getOnerror
Returns theonerror
event handler for this element.- Overrides:
getOnerror
in classHTMLElement
- Returns:
- the
onerror
event handler for this element
-
getOnbeforeunload
public org.htmlunit.corejs.javascript.Function getOnbeforeunload()Returns theonbeforeunload
event handler for this element.- Returns:
- the
onbeforeunload
event handler for this element
-
setOnbeforeunload
Sets theonbeforeunload
event handler for this element.- Parameters:
onbeforeunload
- theonbeforeunload
event handler for this element
-
getOngamepadconnected
public org.htmlunit.corejs.javascript.Function getOngamepadconnected()Returns theongamepadconnected
event handler.- Returns:
- the
ongamepadconnected
event handler
-
setOngamepadconnected
Sets theongamepadconnected
event handler.- Parameters:
gamepadconnected
- theongamepadconnected
event handler
-
getOngamepaddisconnected
public org.htmlunit.corejs.javascript.Function getOngamepaddisconnected()Returns theongamepaddisconnected
event handler.- Returns:
- the
ongamepaddisconnected
event handler
-
setOngamepaddisconnected
Sets theongamepaddisconnected
event handler.- Parameters:
gamepaddisconnected
- theongamepaddisconnected
event handler
-
getOnhashchange
public org.htmlunit.corejs.javascript.Function getOnhashchange()Returns theonhashchange
event handler for this element.- Returns:
- the
onhashchange
event handler for this element
-
setOnhashchange
Sets theonhashchange
event handler for this element.- Parameters:
onhashchange
- theonhashchange
event handler for this element
-
getOnlanguagechange
public org.htmlunit.corejs.javascript.Function getOnlanguagechange()Returns theonlanguagechange
event handler for this element.- Returns:
- the
onlanguagechange
event handler for this element
-
setOnlanguagechange
Sets theonlanguagechange
event handler for this element.- Parameters:
onlanguagechange
- theonlanguagechange
event handler for this element
-
getOnmessage
public org.htmlunit.corejs.javascript.Function getOnmessage()Returns theonmessage
event handler for this element.- Returns:
- the
onmessage
event handler for this element
-
setOnmessage
Sets theonmessage
event handler for this element.- Parameters:
onmessage
- theonmessage
event handler for this element
-
getOnoffline
public org.htmlunit.corejs.javascript.Function getOnoffline()Returns theonoffline
event handler for this element.- Returns:
- the
onoffline
event handler for this element
-
setOnoffline
Sets theonoffline
event handler for this element.- Parameters:
onoffline
- theonoffline
event handler for this element
-
getOnonline
public org.htmlunit.corejs.javascript.Function getOnonline()Returns theononline
event handler for this element.- Returns:
- the
ononline
event handler for this element
-
setOnonline
Sets theononline
event handler for this element.- Parameters:
ononline
- theononline
event handler for this element
-
getOnpagehide
public org.htmlunit.corejs.javascript.Function getOnpagehide()Returns theonpagehide
event handler for this element.- Returns:
- the
onpagehide
event handler for this element
-
setOnpagehide
Sets theonpagehide
event handler for this element.- Parameters:
onpagehide
- theonpagehide
event handler for this element
-
getOnpageshow
public org.htmlunit.corejs.javascript.Function getOnpageshow()Returns theonpageshow
event handler for this element.- Returns:
- the
onpageshow
event handler for this element
-
setOnpageshow
Sets theonpageshow
event handler for this element.- Parameters:
onpageshow
- theonpageshow
event handler for this element
-
getOnpopstate
public org.htmlunit.corejs.javascript.Function getOnpopstate()Returns theonpopstate
event handler for this element.- Returns:
- the
onpopstate
event handler for this element
-
setOnpopstate
Sets theonpopstate
event handler for this element.- Parameters:
onpopstate
- theonpopstate
event handler for this element
-
getOnrejectionhandled
public org.htmlunit.corejs.javascript.Function getOnrejectionhandled()Returns theonrejectionhandled
event handler for this element.- Returns:
- the
onrejectionhandled
event handler for this element
-
setOnrejectionhandled
Sets theonrejectionhandled
event handler for this element.- Parameters:
onrejectionhandled
- theonrejectionhandled
event handler for this element
-
getOnstorage
public org.htmlunit.corejs.javascript.Function getOnstorage()Returns theonstorage
event handler for this element.- Returns:
- the
onstorage
event handler for this element
-
setOnstorage
Sets theonstorage
event handler for this element.- Parameters:
onstorage
- theonstorage
event handler for this element
-
getOnunhandledrejection
public org.htmlunit.corejs.javascript.Function getOnunhandledrejection()Returns theonunhandledrejection
event handler for this element.- Returns:
- the
onunhandledrejection
event handler for this element
-
setOnunhandledrejection
Sets theonunhandledrejection
event handler for this element.- Parameters:
onunhandledrejection
- theonunhandledrejection
event handler for this element
-
getOnunload
public org.htmlunit.corejs.javascript.Function getOnunload()Returns theonunload
event handler for this element.- Returns:
- the
onunload
event handler for this element
-
setOnunload
Sets theonunload
event handler for this element.- Parameters:
onunload
- theonunload
event handler for this element
-
getOnafterprint
public org.htmlunit.corejs.javascript.Function getOnafterprint()Returns theonafterprint
event handler for this element.- Returns:
- the
onafterprint
event handler for this element
-
setOnafterprint
Sets theonafterprint
event handler for this element.- Parameters:
onafterprint
- theonafterprint
event handler for this element
-
getOnbeforeprint
public org.htmlunit.corejs.javascript.Function getOnbeforeprint()Returns theonbeforeprint
event handler for this element.- Returns:
- the
onbeforeprint
event handler for this element
-
setOnbeforeprint
Sets theonbeforeprint
event handler for this element.- Parameters:
onbeforeprint
- theonbeforeprint
event handler for this element
-
getOnmessageerror
public org.htmlunit.corejs.javascript.Function getOnmessageerror()Returns theonmessageerror
event handler for this element.- Returns:
- the
onmessageerror
event handler for this element
-
setOnmessageerror
Sets theonmessageerror
event handler for this element.- Parameters:
onmessageerror
- theonmessageerror
event handler for this element
-
getOnresize
public org.htmlunit.corejs.javascript.Function getOnresize()Returns theonresize
event handler for this element.- Overrides:
getOnresize
in classHTMLElement
- Returns:
- the
onresize
event handler for this element
-
setOnresize
Sets theonresize
event handler for this element.- Overrides:
setOnresize
in classHTMLElement
- Parameters:
onresize
- theonresize
event handler for this element
-
getOnscroll
public org.htmlunit.corejs.javascript.Function getOnscroll()Returns theonscroll
event handler for this element.- Overrides:
getOnscroll
in classHTMLElement
- Returns:
- the
onscroll
event handler for this element
-
setOnscroll
Sets theonscroll
event handler for this element.- Overrides:
setOnscroll
in classHTMLElement
- Parameters:
onresize
- theonscroll
event handler for this element
-