wordcount.js 211 B

1234567
  1. function wordcountinfo(){
  2. var text = document.getElementById("story").value;
  3. var words = text.split(" ");
  4. var count = words.length;
  5. document.getElementById("wordscounted").innerHTML = count;
  6. }