Notes: In order for the textarea.value.lengh object to return predictable values, there must not be any whiteapce between the textarea tag and it's closing tag "</".