Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Limit text to specified number of words using Javascript

"Want better search results? See our search tips".split(" ").splice(0,3).join(" ")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Limit #text #number #words #Javascript
ADD COMMENT
Topic
Name
9+1 =