var reg = new RegExp(ggeett , 'gi'); document.body.innerHTML = document.body.innerHTML.replace(reg, '<strong>'+ggeett+'</strong>');