Hi,
i found something like:
var s = "This,is,a,String";
lenght = s.lenght;
document.write(s.bold());
t = s.substring(2,4);
a = s.split(","); // This line is the most interesting one ;))
document.write(a[1]); // should write the word 'is'
Dont know if it works, i just looked in one of my old boo
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);
}
HTH
t.
> -Message d'origine-
> De : John Taylor-Johns
2 matches
Mail list logo