enterkeyhintBaseline · Widely available
The enterkeyhint global HTML attribute sets the label for a virtual keyboard's Enter key. For example, enterkeyhint="search" may label the key with a magnifying glass icon.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Nov 2, 2021. Widely available since May 2, 2024.
Browser support
DesktopChrome
1–76Not supported
77+Supportedsince Sep 10, 2019
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–93Not supported
94+Supportedsince Nov 2, 2021
Current: 157Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27MobileChrome Android
18–76Not supported
77+Supportedsince Sep 10, 2019
Current: 155Firefox Android
4–93Not supported
94+Supportedsince Nov 2, 2021
Current: 157Safari iOS
1–13Not supported
13.4+Supportedsince Mar 24, 2020
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: enterKeyHint.
Feature detection
JS · check before using
if ("HTMLElement" in globalThis && "enterKeyHint" in HTMLElement.prototype) {
// HTMLElement.enterKeyHint is available
}Documentation (MDN)
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLElement.enterKeyHint | 77 | 79 | 94 | 13.1 | 77 | 94 | 13.4 |
| enterkeyhint | 77 | 79 | 94 | 13.1 | 77 | 94 | 13.4 |