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
-
Nested Class Summary
Nested classes/interfaces inherited from class HTMLElement
HTMLElement.ProxyDomNodeNested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator -
Field Summary
Fields inherited from class 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_NODEFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEventHandlerFromAttribute(String attributeName, String value) Creates the event handler from the attribute value.getALink()Returns the value of theaLinkattribute.Returns the value of thebackgroundattribute.Returns the value of thebgColorattribute.intReturns theclientWidthattribute.getLink()Returns the value of thelinkattribute.Returns this element'soffsetParent.org.htmlunit.corejs.javascript.FunctionReturns theonafterprintevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonbeforeprintevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonbeforeunloadevent handler for this element.Returns theonblurevent handler for this element.Returns theonerrorevent handler for this element.Returns theonfocusevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theongamepadconnectedevent handler.org.htmlunit.corejs.javascript.FunctionReturns theongamepaddisconnectedevent handler.org.htmlunit.corejs.javascript.FunctionReturns theonhashchangeevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonlanguagechangeevent handler for this element.Returns theonloadevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonmessageevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonmessageerrorevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonofflineevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theononlineevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonpagehideevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonpageshowevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonpopstateevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonrejectionhandledevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonresizeevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonscrollevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonstorageevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonunhandledrejectionevent handler for this element.org.htmlunit.corejs.javascript.FunctionReturns theonunloadevent handler for this element.getText()Returns the value of thetextattribute.getVLink()Returns the value of thevLinkattribute.protected booleanIs setting event handler property, at window-level.voidJavaScript constructor.voidSets the value of theaLinkattribute.voidsetBackground(String background) Sets the value of thebackgroundattribute.voidsetBgColor(String bgColor) Sets the value of thebgColorattribute.voidSets the value of thelinkattribute.voidsetOnafterprint(Object onafterprint) Sets theonafterprintevent handler for this element.voidsetOnbeforeprint(Object onbeforeprint) Sets theonbeforeprintevent handler for this element.voidsetOnbeforeunload(Object onbeforeunload) Sets theonbeforeunloadevent handler for this element.voidSets theonblurevent handler for this element.voidsetOnerror(Object handler) Sets theonerrorevent handler for this element.voidsetOnfocus(Object handler) Sets theonfocusevent handler for this element.voidsetOngamepadconnected(Object gamepadconnected) Sets theongamepadconnectedevent handler.voidsetOngamepaddisconnected(Object gamepaddisconnected) Sets theongamepaddisconnectedevent handler.voidsetOnhashchange(Object onhashchange) Sets theonhashchangeevent handler for this element.voidsetOnlanguagechange(Object onlanguagechange) Sets theonlanguagechangeevent handler for this element.voidSets theonloadevent handler for this element.voidsetOnmessage(Object onmessage) Sets theonmessageevent handler for this element.voidsetOnmessageerror(Object onmessageerror) Sets theonmessageerrorevent handler for this element.voidsetOnoffline(Object onoffline) Sets theonofflineevent handler for this element.voidsetOnonline(Object ononline) Sets theononlineevent handler for this element.voidsetOnpagehide(Object onpagehide) Sets theonpagehideevent handler for this element.voidsetOnpageshow(Object onpageshow) Sets theonpageshowevent handler for this element.voidsetOnpopstate(Object onpopstate) Sets theonpopstateevent handler for this element.voidsetOnrejectionhandled(Object onrejectionhandled) Sets theonrejectionhandledevent handler for this element.voidsetOnresize(Object onresize) Sets theonresizeevent handler for this element.voidsetOnscroll(Object onresize) Sets theonscrollevent handler for this element.voidsetOnstorage(Object onstorage) Sets theonstorageevent handler for this element.voidsetOnunhandledrejection(Object onunhandledrejection) Sets theonunhandledrejectionevent handler for this element.voidsetOnunload(Object onunload) Sets theonunloadevent handler for this element.voidSets the value of thetextattribute.voidSets the value of thevLinkattribute.Methods inherited from class 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, toStringMethods inherited from class 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, webkitMatchesSelectorMethods inherited from class 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, setNodeValueMethods inherited from class EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandlerMethods inherited from class HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods 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
-
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:
isEventHandlerOnWindowin classEventTarget- Returns:
- whether the event handler to be set at window-level
-
getOffsetParent_js
Returns this element'soffsetParent. TheoffsetLeftandoffsetTopattributes are relative to theoffsetParent.- Overrides:
getOffsetParent_jsin classHTMLElement- Returns:
- this element's
offsetParent. This may beundefinedwhen this node is not attached ornullforbody. - See Also:
-
getALink
Returns the value of theaLinkattribute.- Returns:
- the value of the
aLinkattribute - See Also:
-
setALink
Sets the value of theaLinkattribute.- Parameters:
aLink- the value of theaLinkattribute- See Also:
-
getBackground
Returns the value of thebackgroundattribute.- Returns:
- the value of the
backgroundattribute - See Also:
-
setBackground
Sets the value of thebackgroundattribute.- Parameters:
background- the value of thebackgroundattribute- See Also:
-
getBgColor
Returns the value of thebgColorattribute.- Returns:
- the value of the
bgColorattribute - See Also:
-
setBgColor
Sets the value of thebgColorattribute.- Parameters:
bgColor- the value of thebgColorattribute- See Also:
-
getLink
Returns the value of thelinkattribute.- Returns:
- the value of the
linkattribute - See Also:
-
setLink
Sets the value of thelinkattribute.- Parameters:
link- the value of thelinkattribute- See Also:
-
getText
Returns the value of thetextattribute.- Returns:
- the value of the
textattribute - See Also:
-
setText
Sets the value of thetextattribute.- Parameters:
text- the value of thetextattribute- See Also:
-
getVLink
Returns the value of thevLinkattribute.- Returns:
- the value of the
vLinkattribute - See Also:
-
setVLink
Sets the value of thevLinkattribute.- Parameters:
vLink- the value of thevLinkattribute- See Also:
-
getClientWidth
public int getClientWidth()Returns theclientWidthattribute.- Overrides:
getClientWidthin classElement- Returns:
- the
clientWidthattribute
-
getOnload
Returns theonloadevent handler for this element.- Overrides:
getOnloadin classHTMLElement- Returns:
- the
onloadevent handler for this element
-
setOnload
Sets theonloadevent handler for this element.- Overrides:
setOnloadin classHTMLElement- Parameters:
onload- theonloadevent handler for this element
-
setOnblur
Sets theonblurevent handler for this element.- Overrides:
setOnblurin classHTMLElement- Parameters:
handler- theonblurevent handler for this element
-
getOnblur
Returns theonblurevent handler for this element.- Overrides:
getOnblurin classHTMLElement- Returns:
- the
onblurevent handler for this element
-
setOnfocus
Sets theonfocusevent handler for this element.- Overrides:
setOnfocusin classHTMLElement- Parameters:
handler- theonfocusevent handler for this element
-
getOnfocus
Returns theonfocusevent handler for this element.- Overrides:
getOnfocusin classHTMLElement- Returns:
- the
onfocusevent handler for this element
-
setOnerror
Sets theonerrorevent handler for this element.- Overrides:
setOnerrorin classHTMLElement- Parameters:
handler- theonerrorevent handler for this element
-
getOnerror
Returns theonerrorevent handler for this element.- Overrides:
getOnerrorin classHTMLElement- Returns:
- the
onerrorevent handler for this element
-
getOnbeforeunload
public org.htmlunit.corejs.javascript.Function getOnbeforeunload()Returns theonbeforeunloadevent handler for this element.- Returns:
- the
onbeforeunloadevent handler for this element
-
setOnbeforeunload
Sets theonbeforeunloadevent handler for this element.- Parameters:
onbeforeunload- theonbeforeunloadevent handler for this element
-
getOngamepadconnected
public org.htmlunit.corejs.javascript.Function getOngamepadconnected()Returns theongamepadconnectedevent handler.- Returns:
- the
ongamepadconnectedevent handler
-
setOngamepadconnected
Sets theongamepadconnectedevent handler.- Parameters:
gamepadconnected- theongamepadconnectedevent handler
-
getOngamepaddisconnected
public org.htmlunit.corejs.javascript.Function getOngamepaddisconnected()Returns theongamepaddisconnectedevent handler.- Returns:
- the
ongamepaddisconnectedevent handler
-
setOngamepaddisconnected
Sets theongamepaddisconnectedevent handler.- Parameters:
gamepaddisconnected- theongamepaddisconnectedevent handler
-
getOnhashchange
public org.htmlunit.corejs.javascript.Function getOnhashchange()Returns theonhashchangeevent handler for this element.- Returns:
- the
onhashchangeevent handler for this element
-
setOnhashchange
Sets theonhashchangeevent handler for this element.- Parameters:
onhashchange- theonhashchangeevent handler for this element
-
getOnlanguagechange
public org.htmlunit.corejs.javascript.Function getOnlanguagechange()Returns theonlanguagechangeevent handler for this element.- Returns:
- the
onlanguagechangeevent handler for this element
-
setOnlanguagechange
Sets theonlanguagechangeevent handler for this element.- Parameters:
onlanguagechange- theonlanguagechangeevent handler for this element
-
getOnmessage
public org.htmlunit.corejs.javascript.Function getOnmessage()Returns theonmessageevent handler for this element.- Returns:
- the
onmessageevent handler for this element
-
setOnmessage
Sets theonmessageevent handler for this element.- Parameters:
onmessage- theonmessageevent handler for this element
-
getOnoffline
public org.htmlunit.corejs.javascript.Function getOnoffline()Returns theonofflineevent handler for this element.- Returns:
- the
onofflineevent handler for this element
-
setOnoffline
Sets theonofflineevent handler for this element.- Parameters:
onoffline- theonofflineevent handler for this element
-
getOnonline
public org.htmlunit.corejs.javascript.Function getOnonline()Returns theononlineevent handler for this element.- Returns:
- the
ononlineevent handler for this element
-
setOnonline
Sets theononlineevent handler for this element.- Parameters:
ononline- theononlineevent handler for this element
-
getOnpagehide
public org.htmlunit.corejs.javascript.Function getOnpagehide()Returns theonpagehideevent handler for this element.- Returns:
- the
onpagehideevent handler for this element
-
setOnpagehide
Sets theonpagehideevent handler for this element.- Parameters:
onpagehide- theonpagehideevent handler for this element
-
getOnpageshow
public org.htmlunit.corejs.javascript.Function getOnpageshow()Returns theonpageshowevent handler for this element.- Returns:
- the
onpageshowevent handler for this element
-
setOnpageshow
Sets theonpageshowevent handler for this element.- Parameters:
onpageshow- theonpageshowevent handler for this element
-
getOnpopstate
public org.htmlunit.corejs.javascript.Function getOnpopstate()Returns theonpopstateevent handler for this element.- Returns:
- the
onpopstateevent handler for this element
-
setOnpopstate
Sets theonpopstateevent handler for this element.- Parameters:
onpopstate- theonpopstateevent handler for this element
-
getOnrejectionhandled
public org.htmlunit.corejs.javascript.Function getOnrejectionhandled()Returns theonrejectionhandledevent handler for this element.- Returns:
- the
onrejectionhandledevent handler for this element
-
setOnrejectionhandled
Sets theonrejectionhandledevent handler for this element.- Parameters:
onrejectionhandled- theonrejectionhandledevent handler for this element
-
getOnstorage
public org.htmlunit.corejs.javascript.Function getOnstorage()Returns theonstorageevent handler for this element.- Returns:
- the
onstorageevent handler for this element
-
setOnstorage
Sets theonstorageevent handler for this element.- Parameters:
onstorage- theonstorageevent handler for this element
-
getOnunhandledrejection
public org.htmlunit.corejs.javascript.Function getOnunhandledrejection()Returns theonunhandledrejectionevent handler for this element.- Returns:
- the
onunhandledrejectionevent handler for this element
-
setOnunhandledrejection
Sets theonunhandledrejectionevent handler for this element.- Parameters:
onunhandledrejection- theonunhandledrejectionevent handler for this element
-
getOnunload
public org.htmlunit.corejs.javascript.Function getOnunload()Returns theonunloadevent handler for this element.- Returns:
- the
onunloadevent handler for this element
-
setOnunload
Sets theonunloadevent handler for this element.- Parameters:
onunload- theonunloadevent handler for this element
-
getOnafterprint
public org.htmlunit.corejs.javascript.Function getOnafterprint()Returns theonafterprintevent handler for this element.- Returns:
- the
onafterprintevent handler for this element
-
setOnafterprint
Sets theonafterprintevent handler for this element.- Parameters:
onafterprint- theonafterprintevent handler for this element
-
getOnbeforeprint
public org.htmlunit.corejs.javascript.Function getOnbeforeprint()Returns theonbeforeprintevent handler for this element.- Returns:
- the
onbeforeprintevent handler for this element
-
setOnbeforeprint
Sets theonbeforeprintevent handler for this element.- Parameters:
onbeforeprint- theonbeforeprintevent handler for this element
-
getOnmessageerror
public org.htmlunit.corejs.javascript.Function getOnmessageerror()Returns theonmessageerrorevent handler for this element.- Returns:
- the
onmessageerrorevent handler for this element
-
setOnmessageerror
Sets theonmessageerrorevent handler for this element.- Parameters:
onmessageerror- theonmessageerrorevent handler for this element
-
getOnresize
public org.htmlunit.corejs.javascript.Function getOnresize()Returns theonresizeevent handler for this element.- Overrides:
getOnresizein classHTMLElement- Returns:
- the
onresizeevent handler for this element
-
setOnresize
Sets theonresizeevent handler for this element.- Overrides:
setOnresizein classHTMLElement- Parameters:
onresize- theonresizeevent handler for this element
-
getOnscroll
public org.htmlunit.corejs.javascript.Function getOnscroll()Returns theonscrollevent handler for this element.- Overrides:
getOnscrollin classHTMLElement- Returns:
- the
onscrollevent handler for this element
-
setOnscroll
Sets theonscrollevent handler for this element.- Overrides:
setOnscrollin classHTMLElement- Parameters:
onresize- theonscrollevent handler for this element
-