How to change the color of the text after clicking on it in Squarespace?
Where in the code do I insert the block id to target a particular block?
Here is the code I was trying to use
<script>
document.getElementById('change').onclick = changeColor;
function changeColor() {
document.body.style.color = "purple";
return false;
}
</script>
I need some help with JavaScript