The enterkeyhintglobal attribute suggests which label a virtual keyboard should show on its Enter key. Pick a value that matches the field’s job: search for a query box, send for a chat composer, next / previous for multi-step forms, or done when editing is finished.
Pair it with inputmode when you also need a different keyboard layout. Neither attribute replaces proper type on inputs.
Baseline · Widely available (mobile).
Modern mobile browsers honor the hint. Physical keyboards are unchanged.
Hint only.
Browsers may ignore the value or map several keywords to the same caption. Always wire real submit / focus behavior in HTML or script.
One line:enterkeyhint makes the soft Enter key say what the field will do.
Frequently Asked Questions
It hints which action label the virtual keyboard should show on the Enter key — for example next, done, search, or send. It does not change desktop physical keyboards.
enter, done, go, next, previous, search, and send.
Not by itself. The label is a hint. What happens on key press still depends on the control, form, and browser (for example search fields often submit).
No. inputmode chooses the keyboard layout (numeric, email, …). enterkeyhint only customizes the Enter key’s caption/action affordance.
Use next on mid-flow fields in a multi-step form; use done on the last field when the keyboard should signal completion.
It is widely available on modern mobile browsers. Desktop usually shows no visible effect.