almost 5 years ago
What split method does:
split() - Splits a string into an array of substrings
Below is an example:-
<textarea rows="12" name="countingWords1 cols="38" wrap="virtual"></textarea><br>
<input type="button" value="Calculate Words" onClick="quickcount()"> <input type="text" name="countingWords3" size="20">
var displaycontent=document. countingWords.countingWords1.value
displaycontent = displaycontent.split(" ")
By using split() method, we separate the text by spaces and then counting the words by length method. Without the help of split method counting the number of words would be a difficult task.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using