How to find all the 'NA' characters in a HMLT page and replace it with "and invalid"

how to find all the "NA" characters in a HMLT page and replace it with "and invalid"
with native JS

Feb.26,2021

var str = "NAsfdsfNAisNA"

var newStr = str.replace(/NA/g,"")
console.log(newStr )//sfdsfis

by the way, you can understand
https://codeshelper.com/a/11.

by reading my article on regularization.

document.body.innerHTML=document.body.innerHTML.replace ('NA',' and invalid') try

Menu