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 aLink:String

Color of active hyperlinks.

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 bgColor:String

Background color for the document.

var link:String

Color of unvisited links.

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.

var onmessage:EventListener

Reflects the

onmessage HTML attribute value for a function to call when the document receives a message.

var onoffline:EventListener

Reflects the

onoffline HTML attribute value for a function to call when network communication fails.

var ononline:EventListener

Reflects the

ononline HTML attribute value for a function to call when network communication is restored.

var onpopstate:EventListener

Reflects the

onpopstate HTML attribute value for a function to call when the user has navigated session history.

var onresize:EventListener

Reflects the

onresize HTML attribute value for a function to call when the document has been resized.

var onstorage:EventListener

Reflects the

onpopstate HTML attribute value for a function to call when the storage area has changed.

var onunload:EventListener

Reflects the

onunload HTML attribute value for a function to call when when the document is going away.

var text:String

Foreground color of text.

var vLink:String

Color of visited links.