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