public class HTMLElement extends Element
HTMLElement which is the base class for all HTML
objects. This will typically wrap an instance of HtmlElement.| Modifier and Type | Class and Description |
|---|---|
static class |
HTMLElement.ProxyDomNode
ProxyDomNode.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BEHAVIOR_ID_CLIENT_CAPS
BEHAVIOR_ID_CLIENT_CAPS.
|
static int |
BEHAVIOR_ID_DOWNLOAD
BEHAVIOR_ID_DOWNLOAD.
|
static int |
BEHAVIOR_ID_HOMEPAGE
BEHAVIOR_ID_HOMEPAGE.
|
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| Constructor and Description |
|---|
HTMLElement()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addBehavior(String behavior)
Adds the specified behavior to this HTML element.
|
void |
addComponentRequest(String id,
String idType,
String minVersion)
Adds the specified component to the queue of components to be installed.
|
void |
blur()
Remove focus from this element.
|
void |
clearAttributes()
An IE-only method which clears all custom attributes.
|
void |
clearComponentRequest()
Clears the component install queue of all component requests.
|
void |
click()
Click this element.
|
int |
compareVersions(String v1,
String v2)
Compares the two specified version numbers.
|
boolean |
contains(Object element)
Checks whether the given element is contained within this object.
|
boolean |
doComponentRequest()
Downloads all the components queued via
addComponentRequest(String, String, String). |
void |
focus()
Sets the focus to this element.
|
String |
getAccessKey()
Returns the
accessKey property. |
protected String |
getAlign(boolean returnInvalidValues)
Returns the value of the
align property. |
Object |
getAttributeNode(String attributeName)
Gets the attribute node for the specified attribute.
|
int |
getAvailHeight()
Returns the screen's available height.
|
int |
getAvailWidth()
Returns the screen's available width.
|
ClientRect |
getBoundingClientRect()
Retrieves an object that specifies the bounds of a collection of TextRectangle objects.
|
int |
getBufferDepth()
Returns the screen's buffer depth.
|
protected String |
getCh()
Returns the value of the
ch property. |
HTMLCollection |
getChildren()
Gets the children of the current node.
|
protected String |
getChOff()
Returns the value of the
chOff property. |
DOMTokenList |
getClassList()
Gets the token list of class attribute.
|
Object |
getClassName_js()
Returns the class defined for this element.
|
int |
getColorDepth()
Returns the screen's color depth.
|
String |
getComponentVersion(String id,
String idType)
Returns the version of the specified component.
|
String |
getContentEditable()
Returns the
contentEditable property. |
String |
getCpuClass()
Returns the type of CPU used.
|
ComputedCSSStyleDeclaration |
getCurrentStyle()
Returns the current (calculated) style object for this element.
|
DOMStringMap |
getDataset()
Returns the
dataset attribute. |
String |
getDir()
Returns the
dir property. |
HtmlElement |
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw
an exception if one cannot be found.
|
HtmlElement |
getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object
or null if a node hasn't been set.
|
HTMLCollection |
getElementsByClassName(String className)
Returns all the descendant elements with the specified class.
|
HTMLFormElement |
getForm()
Returns the value of the JavaScript
form attribute. |
int |
getHeight()
Returns the screen's height.
|
String |
getId()
Returns the element ID.
|
String |
getInnerHTML()
Gets the
innerHTML attribute. |
String |
getInnerText()
Gets the innerText attribute.
|
String |
getLang()
Returns the
lang property. |
String |
getLanguage()
Returns the
language property. |
String |
getLocalName()
Returns the local name of this attribute.
|
String |
getName()
Returns the value of the JavaScript attribute
name. |
String |
getNodeName()
Gets the JavaScript property
nodeName for the current node. |
int |
getOffsetHeight()
Returns this element's offsetHeight, which is the element height plus the element's padding
plus the element's border.
|
int |
getOffsetLeft()
Returns this element's offsetLeft, which is the calculated left position of this
element relative to the offsetParent.
|
Object |
getOffsetParent_js()
Returns this element's offsetParent.
|
int |
getOffsetTop()
Returns this element's
offsetTop, which is the calculated top position of this
element relative to the offsetParent. |
int |
getOffsetWidth()
Returns this element's offsetWidth, which is the element width plus the element's padding
plus the element's border.
|
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnabort()
Returns the
onabort event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnactivate()
Returns the
onactivate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnauxclick()
Returns the
onauxclick event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforeactivate()
Returns the
onbeforeactivate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforecopy()
Returns the
onbeforecopy event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforecut()
Returns the
onbeforecut event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforedeactivate()
Returns the
onbeforedeactivate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforepaste()
Returns the
onbeforepaste event handler for this element. |
Object |
getOnblur()
Returns the
onblur event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncancel()
Returns the
oncancel event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncanplay()
Returns the
oncanplay event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncanplaythrough()
Returns the
oncanplaythrough event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnchange()
Returns the
onchange event handler for this element. |
Object |
getOnclick()
Returns the
onclick event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnclose()
Returns the
onclose event handler for this element. |
Object |
getOncontextmenu()
Returns the
oncontextmenu event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncopy()
Returns the
oncopy event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncuechange()
Returns the
oncuechange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOncut()
Returns the
oncut event handler for this element. |
Object |
getOndblclick()
Returns the
ondblclick event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndeactivate()
Returns the
ondeactivate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndrag()
Returns the
ondrag event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndragend()
Returns the
ondragend event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndragenter()
Returns the
ondragenter event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndragleave()
Returns the
ondragleave event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndragover()
Returns the
ondragover event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndragstart()
Returns the
ondragstart event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndrop()
Returns the
ondrop event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOndurationchange()
Returns the
ondurationchange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnemptied()
Returns the
onemptied event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnended()
Returns the
onended event handler for this element. |
Object |
getOnerror()
Returns the
onerror event handler for this element. |
Object |
getOnfocus()
Returns the
onfocus event handler for this element. |
Object |
getOnfocusin()
Returns the
onfocusin event handler for this element. |
Object |
getOnfocusout()
Returns the
onfocusout event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOngotpointercapture()
Returns the
ongotpointercapture event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnhelp()
Returns the
onhelp event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOninput()
Returns the
oninput event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOninvalid()
Returns the
oninvalid event handler for this element. |
Object |
getOnkeydown()
Returns the
onkeydown event handler for this element. |
Object |
getOnkeypress()
Returns the
onkeypress event handler for this element. |
Object |
getOnkeyup()
Returns the
onkeyup event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnload()
Returns the
onload event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnloadeddata()
Returns the
onloadeddata event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnloadedmetadata()
Returns the
onloadedmetadata event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnloadstart()
Returns the
onloadstart event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnlostpointercapture()
Returns the
onlostpointercapture event handler for this element. |
Object |
getOnmousedown()
Returns the
onmousedown event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmouseenter()
Returns the
onmouseenter event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmouseleave()
Returns the
onmouseleave event handler for this element. |
Object |
getOnmousemove()
Returns the
onmousemove event handler for this element. |
Object |
getOnmouseout()
Returns the
onmouseout event handler for this element. |
Object |
getOnmouseover()
Returns the
onmouseover event handler for this element. |
Object |
getOnmouseup()
Returns the
onmouseup event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmousewheel()
Returns the
onmousewheel event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmozfullscreenchange()
Returns the
onmozfullscreenchange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmozfullscreenerror()
Returns the
onmozfullscreenerror event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmscontentzoom()
Returns the
onmscontentzoom event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmsmanipulationstatechanged()
Returns the
onmsmanipulationstatechanged event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpaste()
Returns the
onpaste event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpause()
Returns the
onpause event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnplay()
Returns the
onplay event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnplaying()
Returns the
onplaying event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointercancel()
Returns the
onpointercancel event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerdown()
Returns the
onpointerdown event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerenter()
Returns the
onpointerenter event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerleave()
Returns the
onpointerleave event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointermove()
Returns the
onpointermove event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerout()
Returns the
onpointerout event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerover()
Returns the
onpointerover event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpointerup()
Returns the
onpointerup event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnprogress()
Returns the
onprogress event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnratechange()
Returns the
onratechange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnreset()
Returns the
onreset 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 |
getOnscroll()
Returns the
onscroll event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnseeked()
Returns the
onseeked event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnseeking()
Returns the
onseeking event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnselect()
Returns the
onselect event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnselectstart()
Returns the
onselectstart event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnshow()
Returns the
onshow event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnstalled()
Returns the
onstalled event handler for this element. |
Object |
getOnsubmit()
Returns the
onsubmit event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnsuspend()
Returns the
onsuspend event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOntimeupdate()
Returns the
ontimeupdate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOntoggle()
Returns the
ontoggle event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnvolumechange()
Returns the
onvolumechange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnwaiting()
Returns the
onwaiting event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnwheel()
Returns the
onwheel event handler for this element. |
String |
getOuterHTML()
Gets the outerHTML of the node.
|
Element |
getParentElement()
Gets the first ancestor instance of
Element. |
HTMLElement |
getParentHTMLElement()
Gets the first ancestor instance of
HTMLElement. |
String |
getPlatform()
Returns the platform used.
|
int |
getPosX()
Returns this element's X position.
|
int |
getPosY()
Returns this element's Y position.
|
String |
getPrefix()
Returns the namespace prefix.
|
CSSStyleDeclaration |
getRuntimeStyle()
Returns the runtime style object for this element.
|
CSSStyleDeclaration |
getStyle()
Returns the style object for this element.
|
String |
getSystemLanguage()
Returns the system language.
|
int |
getTabIndex()
Returns the value of the tabIndex attribute.
|
String |
getTitle()
Returns the element title.
|
String |
getUniqueID()
Retrieves an auto-generated, unique identifier for the object.
|
String |
getUserLanguage()
Returns the user language.
|
protected String |
getVAlign(String[] valid,
String defaultValue)
Returns the value of the
vAlign property. |
Object |
getValue()
Returns the value of the JavaScript attribute
value. |
int |
getWidth()
Returns the screen's width.
|
protected String |
getWidthOrHeight(String attributeName,
Boolean returnNegativeValues)
Returns the value of the specified attribute (width or height).
|
boolean |
hasAttribute(String name)
Returns true when an attribute with a given name is specified on this element or has a default value.
|
Object |
insertAdjacentElement(String where,
Object insertedElement)
Inserts the given element into the element at the location.
|
void |
insertAdjacentHTML(String position,
String text)
Parses the given text as HTML or XML and inserts the resulting nodes into the tree in the position given by the
position argument.
|
void |
insertAdjacentText(String where,
String text)
Inserts the given text into the element at the specified location.
|
protected boolean |
isAncestorOfEventTarget(MouseEvent event)
Returns
true if this element's node is an ancestor of the specified event's target node. |
boolean |
isComponentInstalled(String id,
String idType,
String minVersion)
Returns
true if the specified component is installed. |
boolean |
isCookieEnabled()
Returns
true if cookies are enabled. |
boolean |
isDisabled()
Returns true if this element is disabled.
|
protected boolean |
isEndTagForbidden()
Returns whether the end tag is forbidden or not.
|
boolean |
isHidden()
Returns the
hidden property. |
boolean |
isHomePage(String url)
Returns
true if the specified URL is the web client's current
homepage and the document calling the method is on the same domain as the
user's homepage. |
boolean |
isIsContentEditable()
Returns the
isContentEditable property. |
boolean |
isJavaEnabled()
Returns
true if Java is enabled. |
protected boolean |
isLowerCaseInOuterHtml()
Returns whether the tag is lower case in .outerHTML/.innerHTML.
|
boolean |
isSpellcheck()
Returns the
spellcheck property. |
void |
mergeAttributes(HTMLElement source,
Object preserveIdentity)
An IE-only method which copies all custom attributes from the specified source element
to this element.
|
void |
navigateHomePage()
Causes the web client to navigate to the current home page.
|
protected AttributesImpl |
readAttributes(HtmlElement element)
Gets the attributes of the element in the form of a
Attributes. |
boolean |
releaseCapture()
Mock for the moment.
|
void |
removeBehavior(int id)
Removes the behavior corresponding to the specified identifier from this element.
|
HTMLElement |
removeNode(boolean removeChildren)
Removes this object from the document hierarchy.
|
void |
scrollIntoView()
Implement the
scrollIntoView() JavaScript function but don't actually do
anything. |
void |
setAccessKey(String accessKey)
Sets the
accessKey property. |
void |
setActive()
Sets the object as active without setting focus to the object.
|
protected void |
setAlign(String align,
boolean ignoreIfNoError)
Sets the value of the
align property. |
void |
setAttribute(String name,
String value)
Sets an attribute.
|
void |
setCapture(boolean retargetToElement)
Mock for the moment.
|
protected void |
setCh(String ch)
Sets the value of the
ch property. |
protected void |
setChOff(String chOff)
Sets the value of the
chOff property. |
void |
setClassName_js(String className)
Sets the class attribute for this element.
|
protected void |
setColorAttribute(String name,
String value)
Sets the specified color attribute to the specified value.
|
void |
setContentEditable(String contentEditable)
Sets the
contentEditable property. |
void |
setDir(String dir)
Sets the
dir property. |
void |
setDisabled(boolean disabled)
Sets whether or not to disable this element.
|
void |
setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
void |
setHidden(boolean hidden)
Sets the
hidden property. |
void |
setHomePage(String url)
Sets the web client's current homepage.
|
void |
setId(String newId)
Sets the id value for this element.
|
void |
setInnerHTML(Object value)
Replaces all child elements of this element with the supplied value.
|
void |
setInnerText(Object value)
Replaces all child elements of this element with the supplied text value.
|
protected void |
setInnerTextImpl(String value)
The worker for setInnerText.
|
void |
setLang(String lang)
Sets the
lang property. |
void |
setLanguage(String language)
Sets the
language property. |
void |
setName(String newName)
Sets the value of the JavaScript attribute
name. |
void |
setOnabort(Object onabort)
Sets the
onabort event handler for this element. |
void |
setOnactivate(Object onactivate)
Sets the
onactivate event handler for this element. |
void |
setOnauxclick(Object onauxclick)
Sets the
onauxclick event handler for this element. |
void |
setOnbeforeactivate(Object onbeforeactivate)
Sets the
onbeforeactivate event handler for this element. |
void |
setOnbeforecopy(Object onbeforecopy)
Sets the
onbeforecopy event handler for this element. |
void |
setOnbeforecut(Object onbeforecut)
Sets the
onbeforecut event handler for this element. |
void |
setOnbeforedeactivate(Object onbeforedeactivate)
Sets the
onbeforedeactivate event handler for this element. |
void |
setOnbeforepaste(Object onbeforepaste)
Sets the
onbeforepaste event handler for this element. |
void |
setOnblur(Object handler)
Sets the
onblur event handler for this element. |
void |
setOncancel(Object oncancel)
Sets the
oncancel event handler for this element. |
void |
setOncanplay(Object oncanplay)
Sets the
oncanplay event handler for this element. |
void |
setOncanplaythrough(Object oncanplaythrough)
Sets the
oncanplaythrough event handler for this element. |
void |
setOnchange(Object onchange)
Sets the
onchange event handler for this element. |
void |
setOnclick(Object handler)
Sets the
onclick event handler for this element. |
void |
setOnclose(Object onclose)
Sets the
onclose event handler for this element. |
void |
setOncontextmenu(Object handler)
Sets the
oncontextmenu event handler for this element. |
void |
setOncopy(Object oncopy)
Sets the
oncopy event handler for this element. |
void |
setOncuechange(Object oncuechange)
Sets the
oncuechange event handler for this element. |
void |
setOncut(Object oncut)
Sets the
oncut event handler for this element. |
void |
setOndblclick(Object handler)
Sets the
ondblclick event handler for this element. |
void |
setOndeactivate(Object ondeactivate)
Sets the
ondeactivate event handler for this element. |
void |
setOndrag(Object ondrag)
Sets the
ondrag event handler for this element. |
void |
setOndragend(Object ondragend)
Sets the
ondragend event handler for this element. |
void |
setOndragenter(Object ondragenter)
Sets the
ondragenter event handler for this element. |
void |
setOndragleave(Object ondragleave)
Sets the
ondragleave event handler for this element. |
void |
setOndragover(Object ondragover)
Sets the
ondragover event handler for this element. |
void |
setOndragstart(Object ondragstart)
Sets the
ondragstart event handler for this element. |
void |
setOndrop(Object ondrop)
Sets the
ondrop event handler for this element. |
void |
setOndurationchange(Object ondurationchange)
Sets the
ondurationchange event handler for this element. |
void |
setOnemptied(Object onemptied)
Sets the
onemptied event handler for this element. |
void |
setOnended(Object onended)
Sets the
onended 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 |
setOnfocusin(Object handler)
Sets the
onfocusin event handler for this element. |
void |
setOnfocusout(Object handler)
Sets the
onfocusout event handler for this element. |
void |
setOngotpointercapture(Object ongotpointercapture)
Sets the
ongotpointercapture event handler for this element. |
void |
setOnhelp(Object onhelp)
Sets the
onhelp event handler for this element. |
void |
setOninput(Object oninput)
Sets the
oninput event handler for this element. |
void |
setOninvalid(Object oninvalid)
Sets the
oninvalid event handler for this element. |
void |
setOnkeydown(Object handler)
Sets the
onkeydown event handler for this element. |
void |
setOnkeypress(Object handler)
Sets the
onkeypress event handler for this element. |
void |
setOnkeyup(Object handler)
Sets the
onkeyup event handler for this element. |
void |
setOnload(Object onload)
Sets the
onload event handler for this element. |
void |
setOnloadeddata(Object onloadeddata)
Sets the
onloadeddata event handler for this element. |
void |
setOnloadedmetadata(Object onloadedmetadata)
Sets the
onloadedmetadata event handler for this element. |
void |
setOnloadstart(Object onloadstart)
Sets the
onloadstart event handler for this element. |
void |
setOnlostpointercapture(Object onlostpointercapture)
Sets the
onlostpointercapture event handler for this element. |
void |
setOnmousedown(Object handler)
Sets the
onmousedown event handler for this element. |
void |
setOnmouseenter(Object onmouseenter)
Sets the
onmouseenter event handler for this element. |
void |
setOnmouseleave(Object onmouseleave)
Sets the
onmouseleave event handler for this element. |
void |
setOnmousemove(Object handler)
Sets the
onmousemove event handler for this element. |
void |
setOnmouseout(Object handler)
Sets the
onmouseout event handler for this element. |
void |
setOnmouseover(Object handler)
Sets the
onmouseover event handler for this element. |
void |
setOnmouseup(Object handler)
Sets the
onmouseup event handler for this element. |
void |
setOnmousewheel(Object onmousewheel)
Sets the
onmousewheel event handler for this element. |
void |
setOnmozfullscreenchange(Object onmozfullscreenchange)
Sets the
onmozfullscreenchange event handler for this element. |
void |
setOnmozfullscreenerror(Object onmozfullscreenerror)
Sets the
onmozfullscreenerror event handler for this element. |
void |
setOnmscontentzoom(Object onmscontentzoom)
Sets the
onmscontentzoom event handler for this element. |
void |
setOnmsmanipulationstatechanged(Object onmsmanipulationstatechanged)
Sets the
onmsmanipulationstatechanged event handler for this element. |
void |
setOnpaste(Object onpaste)
Sets the
onpaste event handler for this element. |
void |
setOnpause(Object onpause)
Sets the
onpause event handler for this element. |
void |
setOnplay(Object onplay)
Sets the
onplay event handler for this element. |
void |
setOnplaying(Object onplaying)
Sets the
onplaying event handler for this element. |
void |
setOnpointercancel(Object onpointercancel)
Sets the
onpointercancel event handler for this element. |
void |
setOnpointerdown(Object onpointerdown)
Sets the
onpointerdown event handler for this element. |
void |
setOnpointerenter(Object onpointerenter)
Sets the
onpointerenter event handler for this element. |
void |
setOnpointerleave(Object onpointerleave)
Sets the
onpointerleave event handler for this element. |
void |
setOnpointermove(Object onpointermove)
Sets the
onpointermove event handler for this element. |
void |
setOnpointerout(Object onpointerout)
Sets the
onpointerout event handler for this element. |
void |
setOnpointerover(Object onpointerover)
Sets the
onpointerover event handler for this element. |
void |
setOnpointerup(Object onpointerup)
Sets the
onpointerup event handler for this element. |
void |
setOnprogress(Object onprogress)
Sets the
onprogress event handler for this element. |
void |
setOnratechange(Object onratechange)
Sets the
onratechange event handler for this element. |
void |
setOnreset(Object onreset)
Sets the
onreset event handler for this element. |
void |
setOnresize(Object handler)
Sets the
onresize event handler for this element. |
void |
setOnscroll(Object onscroll)
Sets the
onscroll event handler for this element. |
void |
setOnseeked(Object onseeked)
Sets the
onseeked event handler for this element. |
void |
setOnseeking(Object onseeking)
Sets the
onseeking event handler for this element. |
void |
setOnselect(Object onselect)
Sets the
onselect event handler for this element. |
void |
setOnselectstart(Object onselectstart)
Sets the
onselectstart event handler for this element. |
void |
setOnshow(Object onshow)
Sets the
onshow event handler for this element. |
void |
setOnstalled(Object onstalled)
Sets the
onstalled event handler for this element. |
void |
setOnsubmit(Object onsubmit)
Sets the
onsubmit event handler for this element. |
void |
setOnsuspend(Object onsuspend)
Sets the
onsuspend event handler for this element. |
void |
setOntimeupdate(Object ontimeupdate)
Sets the
ontimeupdate event handler for this element. |
void |
setOntoggle(Object ontoggle)
Sets the
ontoggle event handler for this element. |
void |
setOnvolumechange(Object onvolumechange)
Sets the
onvolumechange event handler for this element. |
void |
setOnwaiting(Object onwaiting)
Sets the
onwaiting event handler for this element. |
void |
setOnwheel(Object onwheel)
Sets the
onwheel event handler for this element. |
void |
setOuterHTML(Object value)
Replaces this element (including all child elements) with the supplied value.
|
void |
setSpellcheck(boolean spellcheck)
Sets the
spellcheck property. |
void |
setStyle(String style)
Sets the styles for this element.
|
void |
setTabIndex(int tabIndex)
Sets the
tabIndex property. |
void |
setTagUrn(String tagUrn)
Sets the Uniform Resource Name (URN) specified in the namespace declaration.
|
void |
setTextContent(Object value)
Replaces all child elements of this element with the supplied text value.
|
void |
setTitle(String newTitle)
Sets the title of this element.
|
protected void |
setVAlign(Object vAlign,
String[] valid)
Sets the value of the
vAlign property. |
void |
setValue(Object newValue)
Sets the value of the JavaScript attribute
value. |
protected void |
setWidthOrHeight(String attributeName,
String value,
boolean allowNegativeValues)
Sets the value of the specified attribute (width or height).
|
void |
startDownload(String uri,
net.sourceforge.htmlunit.corejs.javascript.Function callback)
Implementation of the IE behavior #default#download.
|
String |
toString() |
after, before, createAttributesObject, createEventHandler, createTextRange, get, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, 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, setDefaults, 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, isEventHandlerOnWindow, removeEventListener, setEventHandlerclone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, 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, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic static final int BEHAVIOR_ID_CLIENT_CAPS
public static final int BEHAVIOR_ID_HOMEPAGE
public static final int BEHAVIOR_ID_DOWNLOAD
public void setDomNode(DomNode domNode)
setDomNode in class ElementdomNode - the DOM nodepublic HTMLFormElement getForm()
form attribute.form attributepublic String getTitle()
public void setTitle(String newTitle)
newTitle - the new identifier of this elementpublic boolean isDisabled()
public void setDisabled(boolean disabled)
disabled - True if this is to be disabledpublic String getLocalName()
getLocalName in class Elementpublic void clearAttributes()
public void mergeAttributes(HTMLElement source, Object preserveIdentity)
source - the source element from which to copy the custom attributespreserveIdentity - if false, the name and id attributes are not copiedpublic void setAttribute(String name, String value)
setAttribute in class Elementname - Name of the attribute to setvalue - Value to set the attribute toprotected AttributesImpl readAttributes(HtmlElement element)
Attributes.element - the element to read the attributes frompublic HTMLElement removeNode(boolean removeChildren)
removeChildren - whether to remove children or nopublic Object getAttributeNode(String attributeName)
getAttributeNode in class ElementattributeName - the name of the attribute to retrievepublic HTMLCollection getElementsByClassName(String className)
getElementsByClassName in class ElementclassName - the name to search forpublic Object getClassName_js()
getClassName_js in class Elementpublic String getOuterHTML()
getOuterHTML in class Elementpublic void setOuterHTML(Object value)
setOuterHTML in class Elementvalue - the new value for replacing this elementpublic String getInnerHTML()
innerHTML attribute.getInnerHTML in class Elementpublic void setInnerHTML(Object value)
setInnerHTML in class Elementvalue - the new value for the contents of this elementpublic void setClassName_js(String className)
setClassName_js in class ElementclassName - the new class namepublic void insertAdjacentHTML(String position, String text)
insertAdjacentHTML in class Elementposition - specifies where to insert the nodes, using one of the following values (case-insensitive):
beforebegin, afterbegin, beforeend, afterendtext - the text to parsepublic void insertAdjacentText(String where, String text)
insertAdjacentText in class Elementwhere - specifies where to insert the text, using one of the following values (case-insensitive):
beforebegin, afterbegin, beforeend, afterendtext - the text to insertpublic Object insertAdjacentElement(String where, Object insertedElement)
insertAdjacentElement in class Elementwhere - specifies where to insert the element, using one of the following values (case-insensitive):
beforebegin, afterbegin, beforeend, afterendinsertedElement - the element to be insertedpublic String getInnerText()
public void setInnerText(Object value)
value - the new value for the contents of this elementprotected void setInnerTextImpl(String value)
value - the new value for the contents of this nodepublic void setTextContent(Object value)
setTextContent in class Nodevalue - the new value for the contents of this elementpublic int addBehavior(String behavior)
behavior - the URL of the behavior to add, or a default behavior namepublic void removeBehavior(int id)
id - the identifier for the behavior to removepublic int getAvailHeight()
public int getAvailWidth()
public int getBufferDepth()
public int getColorDepth()
public boolean isCookieEnabled()
true if cookies are enabled. Part of the #default#clientCaps
default IE behavior implementation.public String getCpuClass()
public int getHeight()
public boolean isJavaEnabled()
true if Java is enabled. Part of the #default#clientCaps
default IE behavior implementation.public String getPlatform()
public String getSystemLanguage()
public String getUserLanguage()
public int getWidth()
public void addComponentRequest(String id, String idType, String minVersion)
id - the identifier for the component to installidType - the type of identifier specifiedminVersion - the minimum version of the component to installpublic void clearComponentRequest()
public int compareVersions(String v1, String v2)
v1 - the first of the two version numbers to comparev2 - the second of the two version numbers to comparepublic boolean doComponentRequest()
addComponentRequest(String, String, String).true if the components are downloaded successfully
Current implementation always return falsepublic String getComponentVersion(String id, String idType)
id - the identifier for the component whose version is to be returnedidType - the type of identifier specifiedpublic boolean isComponentInstalled(String id, String idType, String minVersion)
true if the specified component is installed.id - the identifier for the component to check foridType - the type of id specifiedminVersion - the minimum version to check fortrue if the specified component is installedpublic void startDownload(String uri, net.sourceforge.htmlunit.corejs.javascript.Function callback) throws MalformedURLException
uri - the URI of the download sourcecallback - the method which should be called when the download is finishedMalformedURLException - if the URL cannot be createdpublic boolean isHomePage(String url)
true if the specified URL is the web client's current
homepage and the document calling the method is on the same domain as the
user's homepage. Part of the #default#homePage default IE behavior
implementation.url - the URL to checktrue if the specified URL is the current homepagepublic void setHomePage(String url)
url - the new homepage URLpublic void navigateHomePage()
throws IOException
IOException - if loading home page failspublic int getOffsetHeight()
public int getOffsetWidth()
protected boolean isAncestorOfEventTarget(MouseEvent event)
true if this element's node is an ancestor of the specified event's target node.event - the event whose target node is to be checkedtrue if this element's node is an ancestor of the specified event's target nodepublic void setTagUrn(String tagUrn)
tagUrn - the Uniform Resource Name (URN) specified in the namespace declarationpublic HTMLElement getParentHTMLElement()
HTMLElement. It is mostly identical
to Node.getParent() except that it skips XML nodes.Node.getParent()public void scrollIntoView()
scrollIntoView() JavaScript function but don't actually do
anything. The requirement
is just to prevent scripts that call that method from failingscrollIntoView in class Elementpublic String getUniqueID()
public HtmlElement getDomNodeOrDie()
getDomNodeOrDie in class Elementpublic HtmlElement getDomNodeOrNull()
getDomNodeOrNull in class SimpleScriptablepublic void blur()
public void focus()
public void setActive()
public String getNodeName()
nodeName for the current node.getNodeName in class Nodepublic String getPrefix()
public void click()
throws IOException
IOException - if this click triggers a page load that encounters problemspublic boolean isSpellcheck()
spellcheck property.spellcheck propertypublic void setSpellcheck(boolean spellcheck)
spellcheck property.spellcheck - the spellcheck propertypublic String getLang()
lang property.lang propertypublic void setLang(String lang)
lang property.lang - the lang propertypublic String getLanguage()
language property.language propertypublic void setLanguage(String language)
language property.language - the language propertypublic String getDir()
dir property.dir propertypublic void setDir(String dir)
dir property.dir - the dir propertypublic int getTabIndex()
public void setTabIndex(int tabIndex)
tabIndex property.tabIndex - the tabIndex propertypublic String getAccessKey()
accessKey property.accessKey propertypublic void setAccessKey(String accessKey)
accessKey property.accessKey - the accessKey propertyprotected String getWidthOrHeight(String attributeName, Boolean returnNegativeValues)
attributeName - the name of the attribute to return ("width" or "height")returnNegativeValues - if true, negative values are returned;
if false, this method returns an empty string in lieu of negative values;
if null, this method returns 0 in lieu of negative valuesprotected void setWidthOrHeight(String attributeName, String value, boolean allowNegativeValues)
attributeName - the name of the attribute to set ("width" or "height")value - the value of the specified attribute (width or height)allowNegativeValues - if true, negative values will be stored;
if false, negative values cause an exception to be thrown;protected void setColorAttribute(String name, String value)
name - the color attribute's namevalue - the color attribute's valueprotected String getAlign(boolean returnInvalidValues)
align property.returnInvalidValues - if true, this method will return any value, including technically
invalid values; if false, this method will return an empty string instead of invalid valuesalign propertyprotected void setAlign(String align, boolean ignoreIfNoError)
align property.align - the value of the align propertyignoreIfNoError - if true, the invocation will be a no-op if it does not trigger an error
(i.e., it will not actually set the align attribute)protected String getVAlign(String[] valid, String defaultValue)
vAlign property.valid - the valid values; if null, any value is validdefaultValue - the default value to use, if necessaryvAlign propertyprotected void setVAlign(Object vAlign, String[] valid)
vAlign property.vAlign - the value of the vAlign propertyvalid - the valid values; if null, any value is validprotected String getCh()
ch property.ch propertyprotected void setCh(String ch)
ch property.ch - the value of the ch propertyprotected String getChOff()
chOff property.chOff propertyprotected void setChOff(String chOff)
chOff property.chOff - the value of the chOff propertypublic int getOffsetLeft()
public int getPosX()
public int getPosY()
public int getOffsetTop()
offsetTop, which is the calculated top position of this
element relative to the offsetParent.offsetToppublic Object getOffsetParent_js()
undefined when this node is
not attached or null for body.public ClientRect getBoundingClientRect()
getBoundingClientRect in class Elementpublic DOMTokenList getClassList()
getClassList in class Elementpublic boolean hasAttribute(String name)
hasAttribute in class Elementname - the name of the attribute to look forpublic HTMLCollection getChildren()
getChildren in class Elementpublic Element getParentElement()
Element. It is mostly identical
to Node.getParent() except that it skips non Element nodes. Overridden to modify browser configurations.getParentElement in class ElementNode.getParent()public DOMStringMap getDataset()
dataset attribute.dataset attributeprotected boolean isEndTagForbidden()
isEndTagForbidden in class Elementprotected boolean isLowerCaseInOuterHtml()
public void setOnchange(Object onchange)
onchange event handler for this element.onchange - the onchange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnchange()
onchange event handler for this element.onchange event handler for this elementpublic Object getOnsubmit()
onsubmit event handler for this element.onsubmit event handler for this elementpublic void setOnsubmit(Object onsubmit)
onsubmit event handler for this element.onsubmit - the onsubmit event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnwheel()
onwheel event handler for this element.getOnwheel in class Elementonwheel event handler for this elementpublic void setOnwheel(Object onwheel)
onwheel event handler for this element.setOnwheel in class Elementonwheel - the onwheel event handler for this elementpublic void setCapture(boolean retargetToElement)
setCapture in class ElementretargetToElement - if true, all events are targeted directly to this element;
if false, events can also fire at descendants of this elementpublic boolean releaseCapture()
releaseCapture in class Elementpublic String getContentEditable()
contentEditable property.contentEditable propertypublic void setContentEditable(String contentEditable)
contentEditable property.contentEditable - the contentEditable property to setpublic boolean isIsContentEditable()
isContentEditable property.isContentEditable propertypublic CSSStyleDeclaration getStyle()
public void setStyle(String style)
public CSSStyleDeclaration getRuntimeStyle()
public ComputedCSSStyleDeclaration getCurrentStyle()
public void setOnclick(Object handler)
onclick event handler for this element.handler - the onclick event handler for this elementpublic Object getOnclick()
onclick event handler for this element.onclick event handler for this elementpublic void setOndblclick(Object handler)
ondblclick event handler for this element.handler - the ondblclick event handler for this elementpublic Object getOndblclick()
ondblclick event handler for this element.ondblclick event handler for this elementpublic void setOnblur(Object handler)
onblur event handler for this element.handler - the onblur event handler for this elementpublic Object getOnblur()
onblur event handler for this element.onblur event handler for this elementpublic void setOnfocus(Object handler)
onfocus event handler for this element.handler - the onfocus event handler for this elementpublic Object getOnfocus()
onfocus event handler for this element.onfocus event handler for this elementpublic void setOnfocusin(Object handler)
onfocusin event handler for this element.handler - the onfocusin event handler for this elementpublic Object getOnfocusin()
onfocusin event handler for this element.onfocusin event handler for this elementpublic void setOnfocusout(Object handler)
onfocusout event handler for this element.handler - the onfocusout event handler for this elementpublic Object getOnfocusout()
onfocusout event handler for this element.onfocusout event handler for this elementpublic void setOnkeydown(Object handler)
onkeydown event handler for this element.handler - the onkeydown event handler for this elementpublic Object getOnkeydown()
onkeydown event handler for this element.onkeydown event handler for this elementpublic void setOnkeypress(Object handler)
onkeypress event handler for this element.handler - the onkeypress event handler for this elementpublic Object getOnkeypress()
onkeypress event handler for this element.onkeypress event handler for this elementpublic void setOnkeyup(Object handler)
onkeyup event handler for this element.handler - the onkeyup event handler for this elementpublic Object getOnkeyup()
onkeyup event handler for this element.onkeyup event handler for this elementpublic void setOnmousedown(Object handler)
onmousedown event handler for this element.handler - the onmousedown event handler for this elementpublic Object getOnmousedown()
onmousedown event handler for this element.onmousedown event handler for this elementpublic void setOnmousemove(Object handler)
onmousemove event handler for this element.handler - the onmousemove event handler for this elementpublic Object getOnmousemove()
onmousemove event handler for this element.onmousemove event handler for this elementpublic void setOnmouseout(Object handler)
onmouseout event handler for this element.handler - the onmouseout event handler for this elementpublic Object getOnmouseout()
onmouseout event handler for this element.onmouseout event handler for this elementpublic void setOnmouseover(Object handler)
onmouseover event handler for this element.handler - the onmouseover event handler for this elementpublic Object getOnmouseover()
onmouseover event handler for this element.onmouseover event handler for this elementpublic void setOnmouseup(Object handler)
onmouseup event handler for this element.handler - the onmouseup event handler for this elementpublic Object getOnmouseup()
onmouseup event handler for this element.onmouseup event handler for this elementpublic void setOncontextmenu(Object handler)
oncontextmenu event handler for this element.handler - the oncontextmenu event handler for this elementpublic Object getOncontextmenu()
oncontextmenu event handler for this element.oncontextmenu event handler for this elementpublic void setOnresize(Object handler)
onresize event handler for this element.handler - the onresize event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnresize()
onresize event handler for this element.onresize event handler for this elementpublic void setOnerror(Object handler)
onerror event handler for this element.handler - the onerror event handler for this elementpublic Object getOnerror()
onerror event handler for this element.onerror event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOninput()
oninput event handler for this element.oninput event handler for this elementpublic void setOninput(Object oninput)
oninput event handler for this element.oninput - the oninput event handler for this elementpublic boolean contains(Object element)
public boolean isHidden()
hidden property.hidden propertypublic void setHidden(boolean hidden)
hidden property.hidden - the hidden valuepublic String getId()
public void setId(String newId)
public net.sourceforge.htmlunit.corejs.javascript.Function getOnabort()
onabort event handler for this element.onabort event handler for this elementpublic void setOnabort(Object onabort)
onabort event handler for this element.onabort - the onabort event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnauxclick()
onauxclick event handler for this element.onauxclick event handler for this elementpublic void setOnauxclick(Object onauxclick)
onauxclick event handler for this element.onauxclick - the onauxclick event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOncancel()
oncancel event handler for this element.oncancel event handler for this elementpublic void setOncancel(Object oncancel)
oncancel event handler for this element.oncancel - the oncancel event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOncanplay()
oncanplay event handler for this element.oncanplay event handler for this elementpublic void setOncanplay(Object oncanplay)
oncanplay event handler for this element.oncanplay - the oncanplay event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOncanplaythrough()
oncanplaythrough event handler for this element.oncanplaythrough event handler for this elementpublic void setOncanplaythrough(Object oncanplaythrough)
oncanplaythrough event handler for this element.oncanplaythrough - the oncanplaythrough event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnclose()
onclose event handler for this element.onclose event handler for this elementpublic void setOnclose(Object onclose)
onclose event handler for this element.onclose - the onclose event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOncuechange()
oncuechange event handler for this element.oncuechange event handler for this elementpublic void setOncuechange(Object oncuechange)
oncuechange event handler for this element.oncuechange - the oncuechange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndrag()
ondrag event handler for this element.ondrag event handler for this elementpublic void setOndrag(Object ondrag)
ondrag event handler for this element.ondrag - the ondrag event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndragend()
ondragend event handler for this element.ondragend event handler for this elementpublic void setOndragend(Object ondragend)
ondragend event handler for this element.ondragend - the ondragend event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndragenter()
ondragenter event handler for this element.ondragenter event handler for this elementpublic void setOndragenter(Object ondragenter)
ondragenter event handler for this element.ondragenter - the ondragenter event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndragleave()
ondragleave event handler for this element.ondragleave event handler for this elementpublic void setOndragleave(Object ondragleave)
ondragleave event handler for this element.ondragleave - the ondragleave event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndragover()
ondragover event handler for this element.ondragover event handler for this elementpublic void setOndragover(Object ondragover)
ondragover event handler for this element.ondragover - the ondragover event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndragstart()
ondragstart event handler for this element.ondragstart event handler for this elementpublic void setOndragstart(Object ondragstart)
ondragstart event handler for this element.ondragstart - the ondragstart event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndrop()
ondrop event handler for this element.ondrop event handler for this elementpublic void setOndrop(Object ondrop)
ondrop event handler for this element.ondrop - the ondrop event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndurationchange()
ondurationchange event handler for this element.ondurationchange event handler for this elementpublic void setOndurationchange(Object ondurationchange)
ondurationchange event handler for this element.ondurationchange - the ondurationchange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnemptied()
onemptied event handler for this element.onemptied event handler for this elementpublic void setOnemptied(Object onemptied)
onemptied event handler for this element.onemptied - the onemptied event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnended()
onended event handler for this element.onended event handler for this elementpublic void setOnended(Object onended)
onended event handler for this element.onended - the onended event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOngotpointercapture()
ongotpointercapture event handler for this element.getOngotpointercapture in class Elementongotpointercapture event handler for this elementpublic void setOngotpointercapture(Object ongotpointercapture)
ongotpointercapture event handler for this element.setOngotpointercapture in class Elementongotpointercapture - the ongotpointercapture event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOninvalid()
oninvalid event handler for this element.oninvalid event handler for this elementpublic void setOninvalid(Object oninvalid)
oninvalid event handler for this element.oninvalid - the oninvalid event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnload()
onload event handler for this element.onload event handler for this elementpublic void setOnload(Object onload)
onload event handler for this element.onload - the onload event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnloadeddata()
onloadeddata event handler for this element.onloadeddata event handler for this elementpublic void setOnloadeddata(Object onloadeddata)
onloadeddata event handler for this element.onloadeddata - the onloadeddata event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnloadedmetadata()
onloadedmetadata event handler for this element.onloadedmetadata event handler for this elementpublic void setOnloadedmetadata(Object onloadedmetadata)
onloadedmetadata event handler for this element.onloadedmetadata - the onloadedmetadata event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnloadstart()
onloadstart event handler for this element.onloadstart event handler for this elementpublic void setOnloadstart(Object onloadstart)
onloadstart event handler for this element.onloadstart - the onloadstart event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnlostpointercapture()
onlostpointercapture event handler for this element.getOnlostpointercapture in class Elementonlostpointercapture event handler for this elementpublic void setOnlostpointercapture(Object onlostpointercapture)
onlostpointercapture event handler for this element.setOnlostpointercapture in class Elementonlostpointercapture - the onlostpointercapture event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmouseenter()
onmouseenter event handler for this element.onmouseenter event handler for this elementpublic void setOnmouseenter(Object onmouseenter)
onmouseenter event handler for this element.onmouseenter - the onmouseenter event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmouseleave()
onmouseleave event handler for this element.onmouseleave event handler for this elementpublic void setOnmouseleave(Object onmouseleave)
onmouseleave event handler for this element.onmouseleave - the onmouseleave event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmousewheel()
onmousewheel event handler for this element.onmousewheel event handler for this elementpublic void setOnmousewheel(Object onmousewheel)
onmousewheel event handler for this element.onmousewheel - the onmousewheel event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpause()
onpause event handler for this element.onpause event handler for this elementpublic void setOnpause(Object onpause)
onpause event handler for this element.onpause - the onpause event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnplay()
onplay event handler for this element.onplay event handler for this elementpublic void setOnplay(Object onplay)
onplay event handler for this element.onplay - the onplay event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnplaying()
onplaying event handler for this element.onplaying event handler for this elementpublic void setOnplaying(Object onplaying)
onplaying event handler for this element.onplaying - the onplaying event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointercancel()
onpointercancel event handler for this element.getOnpointercancel in class Elementonpointercancel event handler for this elementpublic void setOnpointercancel(Object onpointercancel)
onpointercancel event handler for this element.setOnpointercancel in class Elementonpointercancel - the onpointercancel event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerdown()
onpointerdown event handler for this element.getOnpointerdown in class Elementonpointerdown event handler for this elementpublic void setOnpointerdown(Object onpointerdown)
onpointerdown event handler for this element.setOnpointerdown in class Elementonpointerdown - the onpointerdown event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerenter()
onpointerenter event handler for this element.getOnpointerenter in class Elementonpointerenter event handler for this elementpublic void setOnpointerenter(Object onpointerenter)
onpointerenter event handler for this element.setOnpointerenter in class Elementonpointerenter - the onpointerenter event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerleave()
onpointerleave event handler for this element.getOnpointerleave in class Elementonpointerleave event handler for this elementpublic void setOnpointerleave(Object onpointerleave)
onpointerleave event handler for this element.setOnpointerleave in class Elementonpointerleave - the onpointerleave event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointermove()
onpointermove event handler for this element.getOnpointermove in class Elementonpointermove event handler for this elementpublic void setOnpointermove(Object onpointermove)
onpointermove event handler for this element.setOnpointermove in class Elementonpointermove - the onpointermove event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerout()
onpointerout event handler for this element.getOnpointerout in class Elementonpointerout event handler for this elementpublic void setOnpointerout(Object onpointerout)
onpointerout event handler for this element.setOnpointerout in class Elementonpointerout - the onpointerout event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerover()
onpointerover event handler for this element.getOnpointerover in class Elementonpointerover event handler for this elementpublic void setOnpointerover(Object onpointerover)
onpointerover event handler for this element.setOnpointerover in class Elementonpointerover - the onpointerover event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpointerup()
onpointerup event handler for this element.getOnpointerup in class Elementonpointerup event handler for this elementpublic void setOnpointerup(Object onpointerup)
onpointerup event handler for this element.setOnpointerup in class Elementonpointerup - the onpointerup event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnprogress()
onprogress event handler for this element.onprogress event handler for this elementpublic void setOnprogress(Object onprogress)
onprogress event handler for this element.onprogress - the onprogress event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnratechange()
onratechange event handler for this element.onratechange event handler for this elementpublic void setOnratechange(Object onratechange)
onratechange event handler for this element.onratechange - the onratechange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnreset()
onreset event handler for this element.onreset event handler for this elementpublic void setOnreset(Object onreset)
onreset event handler for this element.onreset - the onreset event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnscroll()
onscroll event handler for this element.onscroll event handler for this elementpublic void setOnscroll(Object onscroll)
onscroll event handler for this element.onscroll - the onscroll event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnseeked()
onseeked event handler for this element.onseeked event handler for this elementpublic void setOnseeked(Object onseeked)
onseeked event handler for this element.onseeked - the onseeked event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnseeking()
onseeking event handler for this element.onseeking event handler for this elementpublic void setOnseeking(Object onseeking)
onseeking event handler for this element.onseeking - the onseeking event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnselect()
onselect event handler for this element.onselect event handler for this elementpublic void setOnselect(Object onselect)
onselect event handler for this element.onselect - the onselect event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnshow()
onshow event handler for this element.onshow event handler for this elementpublic void setOnshow(Object onshow)
onshow event handler for this element.onshow - the onshow event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnstalled()
onstalled event handler for this element.onstalled event handler for this elementpublic void setOnstalled(Object onstalled)
onstalled event handler for this element.onstalled - the onstalled event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnsuspend()
onsuspend event handler for this element.onsuspend event handler for this elementpublic void setOnsuspend(Object onsuspend)
onsuspend event handler for this element.onsuspend - the onsuspend event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOntimeupdate()
ontimeupdate event handler for this element.ontimeupdate event handler for this elementpublic void setOntimeupdate(Object ontimeupdate)
ontimeupdate event handler for this element.ontimeupdate - the ontimeupdate event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOntoggle()
ontoggle event handler for this element.ontoggle event handler for this elementpublic void setOntoggle(Object ontoggle)
ontoggle event handler for this element.ontoggle - the ontoggle event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnvolumechange()
onvolumechange event handler for this element.onvolumechange event handler for this elementpublic void setOnvolumechange(Object onvolumechange)
onvolumechange event handler for this element.onvolumechange - the onvolumechange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnwaiting()
onwaiting event handler for this element.onwaiting event handler for this elementpublic void setOnwaiting(Object onwaiting)
onwaiting event handler for this element.onwaiting - the onwaiting event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOncopy()
oncopy event handler for this element.public void setOncopy(Object oncopy)
oncopy event handler for this element.public net.sourceforge.htmlunit.corejs.javascript.Function getOncut()
oncut event handler for this element.public void setOncut(Object oncut)
oncut event handler for this element.public net.sourceforge.htmlunit.corejs.javascript.Function getOnpaste()
onpaste event handler for this element.getOnpaste in class Elementonpaste event handler for this elementpublic void setOnpaste(Object onpaste)
onpaste event handler for this element.setOnpaste in class Elementonpaste - the onpaste event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
onmozfullscreenchange event handler for this element.onmozfullscreenchange event handler for this elementpublic void setOnmozfullscreenchange(Object onmozfullscreenchange)
onmozfullscreenchange event handler for this element.onmozfullscreenchange - the onmozfullscreenchange event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
onmozfullscreenerror event handler for this element.onmozfullscreenerror event handler for this elementpublic void setOnmozfullscreenerror(Object onmozfullscreenerror)
onmozfullscreenerror event handler for this element.onmozfullscreenerror - the onmozfullscreenerror event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnactivate()
onactivate event handler for this element.onactivate event handler for this elementpublic void setOnactivate(Object onactivate)
onactivate event handler for this element.onactivate - the onactivate event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforeactivate()
onbeforeactivate event handler for this element.onbeforeactivate event handler for this elementpublic void setOnbeforeactivate(Object onbeforeactivate)
onbeforeactivate event handler for this element.onbeforeactivate - the onbeforeactivate event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforecopy()
onbeforecopy event handler for this element.getOnbeforecopy in class Elementonbeforecopy event handler for this elementpublic void setOnbeforecopy(Object onbeforecopy)
onbeforecopy event handler for this element.setOnbeforecopy in class Elementonbeforecopy - the onbeforecopy event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforecut()
onbeforecut event handler for this element.getOnbeforecut in class Elementonbeforecut event handler for this elementpublic void setOnbeforecut(Object onbeforecut)
onbeforecut event handler for this element.setOnbeforecut in class Elementonbeforecut - the onbeforecut event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforedeactivate()
onbeforedeactivate event handler for this element.onbeforedeactivate event handler for this elementpublic void setOnbeforedeactivate(Object onbeforedeactivate)
onbeforedeactivate event handler for this element.onbeforedeactivate - the onbeforedeactivate event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforepaste()
onbeforepaste event handler for this element.getOnbeforepaste in class Elementonbeforepaste event handler for this elementpublic void setOnbeforepaste(Object onbeforepaste)
onbeforepaste event handler for this element.setOnbeforepaste in class Elementonbeforepaste - the onbeforepaste event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOndeactivate()
ondeactivate event handler for this element.ondeactivate event handler for this elementpublic void setOndeactivate(Object ondeactivate)
ondeactivate event handler for this element.ondeactivate - the ondeactivate event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnhelp()
onhelp event handler for this element.onhelp event handler for this elementpublic void setOnhelp(Object onhelp)
onhelp event handler for this element.onhelp - the onhelp event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmscontentzoom()
onmscontentzoom event handler for this element.onmscontentzoom event handler for this elementpublic void setOnmscontentzoom(Object onmscontentzoom)
onmscontentzoom event handler for this element.onmscontentzoom - the onmscontentzoom event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmsmanipulationstatechanged()
onmsmanipulationstatechanged event handler for this element.onmsmanipulationstatechanged event handler for this elementpublic void setOnmsmanipulationstatechanged(Object onmsmanipulationstatechanged)
onmsmanipulationstatechanged event handler for this element.onmsmanipulationstatechanged - the onmsmanipulationstatechanged event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnselectstart()
onselectstart event handler for this element.getOnselectstart in class Elementonselectstart event handler for this elementpublic void setOnselectstart(Object onselectstart)
onselectstart event handler for this element.setOnselectstart in class Elementonselectstart - the onselectstart event handler for this elementpublic String getName()
name.public void setName(String newName)
name.newName - the new namepublic Object getValue()
value.public void setValue(Object newValue)
value.newValue - the new valueCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.