<HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function gotFocus() { document.bgColor="#FFFFFF" } function lostFocus() { document.bgColor="#FF0000"; } </SCRIPT> </HEAD> <BODY onFocus="gotFocus()" onBlur="lostFocus()"> <H1>Document 1</H1> </BODY> </HTML>