focus()

This property is used to give the focus to an element. If another element has focus, it recieves the onBlur event.

syntax:

example

This method is used with the following:

A (Anchor)
APPLET
AREA
BUTTON
CAPTION
DIV
EMBED
FIELDSET
IMG
LEGEND
MARQUEE
OBJECT
SELECT
SPAN
TABLE
TD
TEXTAREA
TH
TR
button
checkbox
fileUpload
password
radio
reset
submit
text
window