Answers for "onclick elemnt change color"

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
14

css onclick change color

<style>
.dabutton:focus {
    background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Posted by: Guest on July-03-2020

Code answers related to "onclick elemnt change color"

Browse Popular Code Answers by Language