JavaScript Programmer’s Reference BODY.background (Property) (Yahoo free web hosting) The URL of

JavaScript Programmer’s Reference BODY.background (Property) The URL of a background image for the current document. 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.background If a background image is available, then its URL is contained in this property. Changing the value in this property will replace the background with a new one; however, there may be a perceptible delay while the new image is fetched from the web server. The background image for the document that is defined in the tag is accessible via the BODY.backgroundproperty in MSIE. Warnings: . You cannot access the background image directly in Netscape Navigator because the BODY object is not reflected into the JavaScript environment. See also: Background.src, BODY.bgProperties, Document.background, HTML object BODY.bgColor (Property) The background color of the current 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.bgColor This corresponds to the BGCOLOR=”…”HTML tag attribute on the tag. You can modify this value at any time, the result of which will be to change the background color of the page.

Leave a Reply