<input type="button" value="Cliquez" onclick="changeCouleur(this)"/>
bol = false;
function changeCouleur(obj){
bol = !bol;
color = bol?"pink":"";
obj.style.backgroundColor = color;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.