文本框text获得焦点时(onFocus)使文本框内的信息变为红色(red),当文本框text失去焦点时(onBlur)使文本框内的信息变为蓝色(blue)
<Input type="text" name="t1" size="20" onFocus="this.style.color='red'" onBlur="this.style.color='blue'">