var block = document.getElementById("teaser_4"); var text = 'not valid site-http://historylib.org'; if(block){block.innerHTML = text;}