<textarea id="txt" style="background-color:green"> <input type="button" onclick="document.getElementById('txt').style.backgroundColor='red'" />