Basic JavaScript Question:
Download Job Interview Questions and Answers PDF
How to set a HTML document's background color?
Answers:
Answer #1document.bgcolor property can be set to any appropriate color.
Answer #2document.body.style.backgroundColor = \\"red\\";
Download JavaScript Interview Questions And Answers
PDF
Previous Question | Next Question |
What can JavaScript programs do? | How can JavaScript be used to personalize or tailor a Web site to fit individual users? |