js element text color

JavaScript
element.style.color = '#f0f';
Source

Also in JavaScript: