Javascript has a “replace” method which can be used to replace all occurances of a string. Consider for example that you want to replace all the occurances of the word “Miscellaneous” to “Amazing”.
Read this post on prowebguru.com