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.) |
body Element
A body element in the object model of an HTML document identifies the body of the document. When creating a document with HTML code in serialized form, enclose the body content between a <body> start tag and a </body> end tag to create a body element.
HTMLBodyElement interface
- Superinterface:
- HTMLElement
- HTML Tag Reference:
- <body> tag
DOM Events | |||
---|---|---|---|
Event Type | Property | Supported | |
abort | Function | onabort | |
afterprint | Function | onafterprint | |
beforeprint | Function | onbeforeprint | |
beforeunload | Function | onbeforeunload | |
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 | |
hashchange | Function | onhashchange | |
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 | |
message | Function | onmessage | |
mousedown | Function | onmousedown | |
mousemove | Function | onmousemove | |
mouseout | Function | onmouseout | |
mouseover | Function | onmouseover | |
mouseup | Function | onmouseup | |
mousewheel | Function | onmousewheel | |
offline | Function | onoffline | |
online | Function | ononline | |
pause | Function | onpause | |
play | Function | onplay | |
playing | Function | onplaying | |
pagehide | Function | onpagehide | |
pageshow | Function | onpageshow | |
popstate | Function | onpopstate | |
progress | Function | onprogress | |
ratechange | Function | onratechange | |
readystatechange | Function | onreadystatechange | |
redo | Function | onredo | |
reset | Function | onreset | |
resize | Function | onresize | |
scroll | Function | onscroll | |
seeked | Function | onseeked | |
seeking | Function | onseeking | |
select | Function | onselect | |
show | Function | onshow | |
stalled | Function | onstalled | |
storage | Function | onstorage | |
submit | Function | onsubmit | |
suspend | Function | onsuspend | |
timeupdate | Function | ontimeupdate | |
undo | Function | onundo | |
unload | Function | onunload | |
volumechange | Function | onvolumechange | |
waiting | Function | onwaiting |