I have some javascript code which counts the remaining characters in a textarea as the user types text in it.
window.onload = function () { captureTextArea();