onFocus

This event handler will execute the instruction(s) when the object it has been assigned to is 'focused on'. For example, when a cell of a table has been made active by either clicking on it or tabbing to it, you've satisfied its 'focus'. That is, the cell has become the 'focus' of attention.

syntax:

document.onFocus = function()

The onFocus Event Handler is used with the following:

A
APPLET
AREA
BUTTON
CAPTION
DIV
EMBED
FIELDSET
IMG
LEGEND
MARQUEE
OBJECT TABLE
TEXTAREA
button
checkbox
fileUpload
layer
password
radio
reset
submit
text
window