var bg=document.body.style.background, e=document.getElementById('myTable'); e.style.background=bg;e.innerHTML='Something';