'bgColor' Syntax and Note : bgColor : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Properties   » [  bgColor  ]   
 



'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
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.