Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript replace

var text = "Sentence with old text"
alert( text.replace("old text", "new text") ); // Sentence with new text
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #replace
ADD COMMENT
Topic
Name
1+7 =