Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick change text color javascript

<script>

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

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

</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onclick #change #text #color #javascript
ADD COMMENT
Topic
Name
9+6 =