javascript STYLE background

backgroundNN 6 IE 4 DOM 2  

Read/Write  

Provides the element's style sheet background attribute. This is a shorthand attribute, so the scripted property consists of a string of space-delimited values for the backgroundAttachment, backgroundColor, backgroundImage, backgroundPosition, and backgroundRepeat property values. One or more values may be in the background value, and the individual values may be in any order. Available in IE as a property of the style and runtimeStyle objects only.

 
Example
 
document.getElementById("myDiv").style.background = "url(logo.gif) repeat-y";
 
Value

String of space-delimited values corresponding to one or more individual background style properties.

 
Default

None.


1806,Nickname,Homepage or email,Comments here,Add comment