S
Sandfordc
I have tried several time to do this but have been unsucessful.
I tried something like:
myFunction(charater)
str=frm.s1.value
sb1=str.substring(0,charater)
sb2=str.substring(charater,str.length)
//looping function to find nearest space on left side
for(parameters){
sbs1=str.indexOf(' ')
}
//found the space on the right no problem
sb2=str.indexOf(' ')
this is about as far as i got. Anyone that can help?
Best Regards,
Sandfordc
www.JavaScript-Central.tk
I tried something like:
myFunction(charater)
str=frm.s1.value
sb1=str.substring(0,charater)
sb2=str.substring(charater,str.length)
//looping function to find nearest space on left side
for(parameters){
sbs1=str.indexOf(' ')
}
//found the space on the right no problem
sb2=str.indexOf(' ')
this is about as far as i got. Anyone that can help?
Best Regards,
Sandfordc
www.JavaScript-Central.tk