'bgColor' Syntax and Note : bgColor « Javascript Properties « JavaScript Reference

'bgColor' Syntax and Note

Note:

Read and write property. 
Sets the background color. 


Value: 
Web color name or hexadecimal color value in #RRGGBB format.
    
Syntax:
    
document.getElementById("elementID").bgColor = value
document.all.elementID.bgColor = value // IE only
document.bgcolor = value

    

      
      








Related examples in the same category

1.'bgColor' Example
2.'bgColor' is applied to