Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

document.getElementById("divA").textContent = "This text is different!";

from:

https://developer.mozilla.org/en-US/docs/Web/API/Node/textCo...



Well this would work, but I think the parent asked how to change all "Got it"s to "Fuck off"s :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: