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 TypePropertySupported
abortFunctiononabort
afterprintFunctiononafterprint
beforeprintFunctiononbeforeprint
beforeunloadFunctiononbeforeunload
blurFunctiononblur
canplayFunctiononcanplay
canplaythroughFunctiononcanplaythrough
changeFunctiononchange
clickFunctiononclick
contextmenuFunctiononcontextmenu
cuechangeFunctiononcuechange
dblclickFunctionondblclick
dragFunctionondrag
dragendFunctionondragend
dragenterFunctionondragenter
dragleaveFunctionondragleave
dragoverFunctionondragover
dragstartFunctionondragstart
dropFunctionondrop
durationchangeFunctionondurationchange
emptiedFunctiononemptied
endedFunctiononended
errorFunctiononerror
focusFunctiononfocus
formchangeFunctiononformchange
forminputFunctiononforminput
hashchangeFunctiononhashchange
inputFunctiononinput
invalidFunctiononinvalid
keydownFunctiononkeydown
keypressFunctiononkeypress
keyupFunctiononkeyup
loadFunctiononload
loadeddataFunctiononloadeddata
loadedmetadataFunctiononloadedmetadata
loadstartFunctiononloadstart
messageFunctiononmessage
mousedownFunctiononmousedown
mousemoveFunctiononmousemove
mouseoutFunctiononmouseout
mouseoverFunctiononmouseover
mouseupFunctiononmouseup
mousewheelFunctiononmousewheel
offlineFunctiononoffline
onlineFunctionononline
pauseFunctiononpause
playFunctiononplay
playingFunctiononplaying
pagehideFunctiononpagehide
pageshowFunctiononpageshow
popstateFunctiononpopstate
progressFunctiononprogress
ratechangeFunctiononratechange
readystatechangeFunctiononreadystatechange
redoFunctiononredo
resetFunctiononreset
resizeFunctiononresize
scrollFunctiononscroll
seekedFunctiononseeked
seekingFunctiononseeking
selectFunctiononselect
showFunctiononshow
stalledFunctiononstalled
storageFunctiononstorage
submitFunctiononsubmit
suspendFunctiononsuspend
timeupdateFunctionontimeupdate
undoFunctiononundo
unloadFunctiononunload
volumechangeFunctiononvolumechange
waitingFunctiononwaiting