<form name="wordcount" action=""> <h1><label for="wordcount2">count your words</label></h1> <textarea rows="12" name="wordcount2" id="wordcount2" cols="38" style="word-wrap: break-word"></textarea><br /> <input type="button" value="Number of Words" onclick="countit()" /> <input type="text" name="wordcount3" size="20" /> </form> <script language="javascript" type="text/javascript"> <!-- function countit(){ var formcontent=document.wordcount.wordcount2.value formcontent=formcontent.split(" ") document.wordcount.wordcount3.value=formcontent.length } // --> </script>
return to tutorial and/or
CWC reference pages . ASCII-art . illustrations and gif animations . llinks to ridiculously useless sites . home page
Crosswinds WebHosting