Published
- 1 min read
onclick change text color javascript
The solution for this is noted below
onclick change text color javascript
Solution
<script>
document.getElementById('change').onclick = changeColor;
function changeColor() {
document.body.style.color = "purple";
return false;
}
</script>
Try other methods by searching on the site. That is if this doesn’t work