I am trying to create a button that will call a css script to change the background image of the page
I have tried several things and have had some success with
function changecss(sheet){ document.getElementById('backimage').setAttribute('href', sheet); } </script> <link id="backimage" rel="stylesheet" type="text/css" href="default.css">`` and ```<button type="button" onclick="changecss('bg2.css');"> <font face="Arial Narrow"><b>Change BG</button> <button type="button" onclick="changeBodyBg('black');"> <font face="Arial Narrow"><b> Black </button> <button type="button" onclick="changeBodyBg('red');"> <font face="Arial Narrow"><b> Red </button> </b></font><button type="button" onclick="changeBodyBg('orange');"> <font face="Arial Narrow"><b>Orange</b></font> </button> <button type="button" onclick="changeBodyBg('yellow');"> <font face="Arial Narrow"><b>Yellow</button> </b></font> <button type="button" onclick="changeBodyBg('green');"> <font face="Arial Narrow"><b>Green</button> </b></font>``` **The problem is that it works if it is the first option chosen but, if I select any of the other buttons, which all work, then it does not work** (css stylesheet code is: ```body { background: ##1baa00; background-image: url("zenbg-1.png"), url("zenbg-2.png"); background-repeat: repeat-x, repeat; }```