class js.html.BodyElement extends Element
Available on js
DOM body elements expose the HTMLBodyElement (or
HTML 4 HTMLBodyElement
) interface, which provides special properties (beyond the regular element
object interface they also have available to them by inheritance) for manipulating body elements.
Documentation for this class was provided by MDN.
Instance Fields
var background:String
URI for a background image resource.
Note: Starting in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4)
, this value is no longer resolved as a URI; instead, it's treated as a simple string.
var onbeforeunload:EventListener
Reflects the
onbeforeunload
HTML attribute value for a function to call when the document is about to be unloaded.var onhashchange:EventListener
Reflects the
onhashchange
HTML attribute value for a function to call when the fragment identifier in the address of the document changes.Reflects the
onmessage
HTML attribute value for a function to call when the document receives a message.Reflects the
onoffline
HTML attribute value for a function to call when network communication fails.Reflects the
ononline
HTML attribute value for a function to call when network communication is restored.Reflects the
onpopstate
HTML attribute value for a function to call when the user has navigated session history.Reflects the
onresize
HTML attribute value for a function to call when the document has been resized.Reflects the
onpopstate
HTML attribute value for a function to call when the storage area has changed.Reflects the
onunload
HTML attribute value for a function to call when when the document is going away.