information4all ― function countit(){ var formcontent=document.Pru.Prucount2.value var trimmed =formcontent.replace(/^s+|s+$/g, '') ; var str = trimmed.replace(/ +(?= )/g,''); trimmed=str.split(" ") document.Pru.Prucount3.value=trimmed.length } Here is A Tool To Count Number of Words In A Text. For Source See Here.
What would you say?
Be the first to comment on this blog post! Sign in or Create an account.