Find text in a string and replace with another in JavaScript
1 answer
Not sure if this is the answer you are looking for, but you can use .replace() for this.
objLink = objLink.replace("http://", "http://www."); Check out the demo: http://jsfiddle.net/XZKaj/
+2