APIdia Launch Partner
Top Description Methods
org.w3c.dom.html

public Interface HTMLBodyElement

extends HTMLElement

The HTML document body. This element is always present in the DOM API, even if the tags are not present in the source document. See the BODY element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public String
getBackground()

URI of the background texture tile image.

public String
getBgColor()

Document background color.

public String
getText()

Document text color.

public void
setBackground(String background)

public void
setBgColor(String bgColor)

public void
Inherited from org.w3c.dom.html.HTMLElement:
getClassNamegetDirgetIdgetLanggetTitlesetClassNamesetDirsetIdsetLangsetTitle

Method Detail

getBackgroundback to summary
public String getBackground()

URI of the background texture tile image. See the background attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getBgColorback to summary
public String getBgColor()

Document background color. See the bgcolor attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

getTextback to summary
public String getText()

Document text color. See the text attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

setBackgroundback to summary
public void setBackground(String background)
setBgColorback to summary
public void setBgColor(String bgColor)
setTextback to summary
public void setText(String text)