è standard


function colora (){
pippo=document.getElementsByTagName('body')[0];
pippo.style.backgroundColor="green";
}

e così pure getElementById