B BODY.text (Property) BODY.text (Property) (Web server on xp) The color

B BODY.text (Property) BODY.text (Property) The color of body text within the page. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myBODY.text This value controls the foreground text in the document body. You should use the normal color values to define the required color. This is the default text color for the document. It corresponds to the TEXT attribute in the tag. Default foreground text is colored according to this setting unless it is in an tag when the alinkColor, linkColor and vlinkColor properties override it. The foreground text color can be changed inline with the HTML tag attribute. Now that the style control facilities are more sophisticated, this tag attribute is likely to fall into disuse. Note also that its property name is not consistent with its counterpart, the document.fgColor property whose value it reflects. BODY.aLink, BODY.link, BODY.vLink, Color names, Color value, Document.alinkColor, Document.bgColor, Document.fgColor, Document.linkColor, Document.vlinkColor, HTML object See also: BODY.topMargin (Property) A margin value at the top of the document window. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: Number primitive JavaScript syntax: IE myBODY.topMargin Normally, you would not need to specify this property. It allows the document to have some clear space at the top so for example the content could be made to scroll completely off the screen when it is loaded. The distance is measured in pixels and can range from zero (which is the default) to any reasonably sensible value. Making it any bigger than the screen size is pointless. This corresponds to the style.marginTop property and the margin-top attribute that is defined in a style sheet.

Leave a Reply