simple find and replace string
8
simple find and replace string
function SrchReplace(Text, Search, Replace) {
while (Text.indexOf(Search)>=0) {
var i = Text.indexOf(Search);
Text = Text.substr(0, i)+Replace+Text.substr(i+Search.length);
}
return Text;
}





I've got good news, and I've got bad news:
The universe is merely a figment of my imagination.
Now are you ready for the bad news?