Skip to content

Instantly share code, notes, and snippets.

@luxifer
Created October 18, 2012 18:56
Show Gist options
  • Save luxifer/3914087 to your computer and use it in GitHub Desktop.
Save luxifer/3914087 to your computer and use it in GitHub Desktop.
function modifieTexte() {
var t2 = document.getElementById("t2");
t2.firstChild.nodeValue = "trois";
}
function load() {
var el = document.getElementById("t");
el.attachEvent("onclick", modifieTexte);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment