// Get the textarea to watch for updates var t = document.getElementsByTagName(“textarea”)[0]; // Grab the current value of a