Answers for "change color of div when clicked js based to clicked butotn"

CSS
3

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
1

css color when clicked

element:focus
Posted by: Guest on January-11-2021

Code answers related to "change color of div when clicked js based to clicked butotn"

Browse Popular Code Answers by Language