0
How to add font color in a text by using document.write
2 Answers
0
document.write("<font color=\"blue\">["+time()+"]</font>");
document.write('<font color="blue">['+time()+"]</font>");
document.write("<font color='blue'>["+time()+"]</font>");
- 1
You need to use getElementById().style.color
or with
document.write("<font color='blue'>" text here " </font>");