Answers for "javascript change all text color"

17

print colored text javascript

console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
Posted by: Guest on April-09-2020
0

onclick change text color javascript

<script>

    document.getElementById('change').onclick = changeColor;   

    function changeColor() {
        document.body.style.color = "purple";
        return false;
    }   

</script>
Posted by: Guest on May-14-2020
5

js element text color

element.style.color = '#f0f';
Posted by: Guest on April-15-2020
1

javascript change color

var span = document.getElementsByTagName("span")[0];
span.style.color = "red";
Posted by: Guest on May-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language