This JavaScript will allow you to write up to 160 characters only in text box. Demo : http://cyberaditya.in/js_scripts/textcountdown.html