enterkeyhint – Enter key label (attribute)
<input enterkeyhint="search">
The label or icon of the Enter key on a phone keyboard: “Search” in a search field, “Next” between form fields, “Send” for a message. What happens after pressing it is not controlled by the attribute – the form or a script does that.
Values
enter(a new line),done,go,next(the next field),previous,search,send.
- Applies to: form fields and editable content
- In JavaScript:
element.enterKeyHint
Examples
A chat field with a “Send” key:
<label for="chat">Message</label> <input id="chat" name="message" enterkeyhint="send" autocomplete="off">
Things to watch out for
- On a desktop the attribute has no effect.
- The “Next” key (
next) does not jump to the next field by itself – a script has to do that, or the browser does it in a form in its own way.
Browser support
Baseline – widely available: in all major browsers since November 2021, considered widely available since May 2024. Since version: Chrome 77, Firefox 94, Safari 13.1. As of October 2026 (MDN browser-compat-data).
Related:
input – input field
inputmode – keyboard type (attribute)
form – form