La copie de code est la suivante: fonction getID (id) { alerte (id); } <input id = "btn1" type = "bouton" value = "test" onclick = "return getID (this.id)" />