Anchor.focus() (Method)

Brings input focus back to the anchor object.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
JavaScript syntax:-myInputObject.focus()

The receiving Anchor object will receive a Focus event trigger and execute its function referred to by the onfocus event handler property.

The element that previously had focus (if any element did) will receive a Blur event trigger.