There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

focus-on-first

Syntax

focus-on-first: (selector set) [end-of-field] [every (time)] [after (time)][, (element)...];

selector set = Any valid CSS selector referencing multiple elements.

end-of-field = after focus places the cursor at the end of the field, if the field handles text.

The first element in the selector set will be focused on.

This command runs a JavaScript "focus" event.

focus-on-first