<input type="button" value="Cliquez" onclick="changeCouleur(this)"/>
bol = false;
function changeCouleur(obj){
  bol = !bol;
  color = bol?"pink":"";
  obj.style.backgroundColor = color;  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.