If the name of a function is used, the function will receive 2 parameters when called:
- The browser event object
- A reference to the element that received focus
The following would draw a red border around the element once it receives focus.
onfocus: this.style.border = "1px solid red";