Returns the array of strings that results when a string is separated into substrings.
stringObj.split([separator[, limit]])
The result of the split method is an array of strings split at each point where separator occurs in stringObj. The separator is not returned as part of any array element.
The following example illustrates the use of the split method.
function SplitDemo(){ var s, ss; var s = "The rain in Spain falls mainly in the plain."; // Split at each space character. ss =s.split(
" ")
; return(ss); }
concat Method | RegExp Object | Regular Expression Object | Regular Expression Syntax | String Object Methods
Applies To: String Object