Skip to content

Instantly share code, notes, and snippets.

@jsocol
Created December 9, 2010 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsocol/735163 to your computer and use it in GitHub Desktop.
Save jsocol/735163 to your computer and use it in GitHub Desktop.
// Add me right before </body>.
(function() {
function changeHandler() {
var source = document.getElementById('source-textarea').value,
result;
result = doYourThing(source);
document.getElementById('result-textarea').value = result;
}
document.getElementById('source-textarea').addEventListener('change', changeHandler, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment