Just starting to dabble in JavaScript and attempting to change the colors of my website's header, footer, and background. I've created two buttons:
<div class="styleBut">
<a href="#" class="btn btn-warning">ReStyle</a>
<a href="#" class="btn btn-warning">Reset</a>
</div>
Here is the JavaScript code I am using:
I am struggling to figure out how to connect this script to my buttons, I assume it involves an onclick event, but for some reason it's not functioning as expected.