Using a div called ‘noshchat’
it will search the div and replace no for replace, and hello for fish, and No comments with xx.
1 2 3 4 5 6 7 8 9 10 11 |
var theDiv = document.getElementById("noshchat"); var theText = theDiv.innerHTML; // Replace words theText = theText.replace("no", "replace"); theText = theText.replace("hello", "fish"); theText = theText.replace("No Comments", "xx"); theDiv.innerHTML = theText; |