If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
HTMLElement Interface
All of the HTML elements implement either this interface, to expose the core HTML attributes and methods, or one of its subinterfaces for elements that need to provide access to additional attributes or methods.
- Superinterface:
- Element
- Subinterfaces:
- HTMLAnchorElement HTMLAreaElement HTMLBaseElement HTMLBodyElement HTMLBRElement HTMLButtonElement HTMLCanvasElement HTMLCommandElement HTMLDataListElement HTMLDetailsElement HTMLDivElement HTMLDListElement HTMLEmbedElement HTMLFieldSetElement HTMLFormElement HTMLHeadElement HTMLHeadingElement HTMLHRElement HTMLHtmlElement HTMLIFrameElement HTMLImageElement HTMLInputElement HTMLKeygenElement HTMLLabelElement HTMLLegendElement HTMLLIElement HTMLLinkElement HTMLMapElement HTMLMediaElement HTMLMenuElement HTMLMetaElement HTMLMeterElement HTMLModElement HTMLObjectElement HTMLOListElement HTMLOptGroupElement HTMLOptionElement HTMLOutputElement HTMLParagraphElement HTMLParamElement HTMLPreElement HTMLProgressElement HTMLQuoteElement HTMLScriptElement HTMLSelectElement HTMLSourceElement HTMLSpanElement HTMLStyleElement HTMLTableElement HTMLTableCaptionElement HTMLTableCellElement HTMLTableColElement HTMLTableSectionElement HTMLTextAreaElement HTMLTimeElement HTMLTitleElement HTMLTableRowElement HTMLTrackElement HTMLUListElement
- Use:
- abbr Element address Element article Element aside Element b Element bdi Element bdo Element cite Element code Element dd Element device Element dfn Element dt Element em Element figcaption Element figure Element footer Element header Element hgroup Element i Element kbd Element mark Element nav Element noscript Element q Element rp Element rt Element ruby Element s Element samp Element section Element small Element strong Element sub Element summary Element sup Element var Element wbr Element
DOM Properties | Supported | ||
---|---|---|---|
get or set | DOMString |
|
|
get only | DOMString |
|
|
get only | boolean |
|
|
get or set | DOMString |
|
|
get only | DOMTokenList |
|
|
get only | DOMString |
|
|
get or set | DOMString |
|
|
get or set | HTMLMenuElement |
|
|
get only | DOMStringMap |
|
|
get or set | DOMString |
|
|
get only | boolean |
|
|
get or set | boolean |
|
|
get or set | DOMSettableTokenList |
|
|
get only | DOMString |
|
|
get or set | DOMString |
|
|
get or set | DOMString |
|
|
get only | boolean |
|
|
get or set | DOMString |
|
|
get only | DOMSettableTokenList |
|
|
get only | DOMSettableTokenList |
|
|
get or set | boolean |
|
|
get or set | DOMString |
|
|
get or set | any |
|
|
get only | DOMString |
|
|
get or set | DOMString |
|
|
get or set | DOMString |
|
|
get only | HTMLPropertiesCollection |
|
|
get or set | boolean |
|
|
get only | CSSStyleDeclaration |
|
|
get or set | long |
|
|
get or set | DOMString |
|
DOM Interface Methods | Supported | |
---|---|---|
void |
|
|
void |
|
|
void |
|
|
NodeList |
|
|
void |
DOM Events | |||
---|---|---|---|
Event Type | Property | Supported | |
abort | Function | onabort | |
blur | Function | onblur | |
canplay | Function | oncanplay | |
canplaythrough | Function | oncanplaythrough | |
change | Function | onchange | |
click | Function | onclick | |
contextmenu | Function | oncontextmenu | |
cuechange | Function | oncuechange | |
dblclick | Function | ondblclick | |
drag | Function | ondrag | |
dragend | Function | ondragend | |
dragenter | Function | ondragenter | |
dragleave | Function | ondragleave | |
dragover | Function | ondragover | |
dragstart | Function | ondragstart | |
drop | Function | ondrop | |
durationchange | Function | ondurationchange | |
emptied | Function | onemptied | |
ended | Function | onended | |
error | Function | onerror | |
focus | Function | onfocus | |
formchange | Function | onformchange | |
forminput | Function | onforminput | |
input | Function | oninput | |
invalid | Function | oninvalid | |
keydown | Function | onkeydown | |
keypress | Function | onkeypress | |
keyup | Function | onkeyup | |
load | Function | onload | |
loadeddata | Function | onloadeddata | |
loadedmetadata | Function | onloadedmetadata | |
loadstart | Function | onloadstart | |
mousedown | Function | onmousedown | |
mousemove | Function | onmousemove | |
mouseout | Function | onmouseout | |
mouseover | Function | onmouseover | |
mouseup | Function | onmouseup | |
mousewheel | Function | onmousewheel | |
pause | Function | onpause | |
play | Function | onplay | |
playing | Function | onplaying | |
progress | Function | onprogress | |
ratechange | Function | onratechange | |
readystatechange | Function | onreadystatechange | |
reset | Function | onreset | |
scroll | Function | onscroll | |
seeked | Function | onseeked | |
seeking | Function | onseeking | |
select | Function | onselect | |
show | Function | onshow | |
stalled | Function | onstalled | |
submit | Function | onsubmit | |
suspend | Function | onsuspend | |
timeupdate | Function | ontimeupdate | |
volumechange | Function | onvolumechange | |
waiting | Function | onwaiting |