var el; if(el = document.getElementById('jsdiv2')){ el.innerHTML = 'Groβe big reklama…'; el.style.backgroundColor='green'; }