function ReplaceWhiteSpaces() { var text = "Example to Replace white spaces in strings"; text = text.replace(/\s/g, "-"); alert(text); }
No comments :
Post a Comment