How to use the bgColor property?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How to use the bgColor property?
Rating:
The bgColor property of the document object changes the background color of the content area of the browser window.
The following is the syntax of the bgColor property:
document.bgColor="colorcode"
The following example will demonstrate both the above syntaxes:
document.bgColor="#ff0000"
Rating:
Was this information helpful?
Other articles
- The Array object, Its Properties, and Methods.
- What is a button object?
- What is the increment operator?
- What are keywords?
- What is the italics method?
