Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<button onclick="myfunction()">replace</button>
<div id="test">This is angularjs!</div>
<script>
function myfunction() {
var str1 = document.getElementById("test").innerHTML;
var txt1 = str1.replace(/angularjs/g,"javascript");
document.getElementById("test").innerHTML = txt1;
}
</script>
</body>
</html> 
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT
Click to see more ...
6.2K
508
How to get client machine name or computer name with javascript ?JAVASCRIPT
Click to see more ...
30.4K
396
get client hostname javascriptJAVASCRIPT
Click to see more ...
5.5K
301
create 3d barrel using javascriptJAVASCRIPT
Click to see more ...
4.2K
258
Create fireworks using javascriptJAVASCRIPT
Click to see more ...
3.9K
203
create qr code javascriptJAVASCRIPT
Click to see more ...
3.3K
205
detect ie javascriptJAVASCRIPT
Click to see more ...
3.4K
194
fire event when user is idle javascriptJAVASCRIPT
Click to see more ...
3.2K
186
how to create foreach class using javascript ?JAVASCRIPT
Click to see more ...
2.8K
184
create earth in universe with three.jsJAVASCRIPT
Click to see more ...
3.5K
185