How to chage font colors using javascript dom code example Example: js element text color element.style.color = '#f0f';