<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin function
ignoreSpaces(string){ var
temp =""; string =''+
string; splitstring =
string.split("
"); for(i
=0;
i <
splitstring.length;
i++) temp +=
splitstring[i]; return
temp;
} // End --> </script> <pre> Before: String = x xx xxx xxxx<br> After: String = <scriptlanguage="JavaScript"> document.write(ignoreSpaces("x
xx xxx xxxx")); </script> </pre> Or, try entering a string with spaces in
this box. <form>
<input
type=textsize=25onBlur="this.value=ignoreSpaces(this.value);">
<input
type=buttonvalue="Ok">
</form>