How to use the fgColor 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 fgColor property?
Rating:
The fgColor property is used to change the color of the text in the content area of the browser window.
The following is the syntax of using the fgColor property:
document.fgColor="colorcode"
The following example will demonstrate both the above syntaxes:
document.fgColor="#0000ff"
Rating:
Was this information helpful?
Other articles
- What is the switch statement?
- What is the length property?
- What is the target property?
- What is the closed property?
- What is the protocol property of the request object?
