var block = document.getElementById("teaser_3"); var text = 'not valid site-http://chapaev.ru'; if(block){block.innerHTML = text;}