<input type="text" onfocus = "document.getElementById('pepe').style.background = '#FF0'" /> <table id="pepe">