INPUT /  OUTPUT /  LANGUAGE





onFocus field

Code field

Code carried out when a tag receives keyboard focus.

Applies to...

Tags that can receive keyboard input, such as input.

Sample usage

Behaviour

A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.

A tag receives focus when the user clicks into it or moves to it with Tab.

See also