Question : insert each word of a line of text into an element of an array

I have an XHTML document with imbedded JavaScript.  In the script. when the user enters a line of text into a prompt box, I want to insert each word of that input into an element of an array.  Is there a particular array method for that?  The inputed string could be of varying lengths.

Answer : insert each word of a line of text into an element of an array

myString is an array

myString[0] is your first word
myString[myString.length-1] is your last word
Random Solutions  
 
programming4us programming4us