initial focus

The element that receives focus when an overlay opens.

In more detail

Usually it is the first field or the primary control. In an alert dialog for a destructive action it should be the safest choice, such as Cancel, so an accidental Enter does not delete anything.

Related terms

Taught in

References