Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLElement
  4. inputMode

HTMLElement: inputMode property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨December 2021⁩.

TheHTMLElement propertyinputMode reflects the value of the element'sinputmode attribute.

It provides a hint about the type of data that might be entered by the user while editing the element or its contents. This allows the browser to display an appropriate virtual keyboard.

It is used primarily on<input> elements, but is usable on any element incontenteditable mode.

Value

This attribute may have one of the following values:

decimal

Fractional numeric input keyboard that contains the digits and decimal separator for the user's locale (typically. or,).

email

A virtual keyboard optimized for entering email addresses.Typically includes the@character as well as other optimizations.

none

No virtual keyboard. This is used when the page implements its own keyboard input control.

numeric

Numeric input keyboard that only requires the digits 0–9.Devices may or may not show a minus key.

search

A virtual keyboard optimized for search input.For instance, thereturn/submit key may be labeled "Search".

tel

A telephone keypad input that includes the digits 0–9, the asterisk (*), and the pound (#) key.

text

Standard input keyboard for the user's current locale.

url

A keypad optimized for entering URLs.This may have the/ key more prominent, for example.

For details on the usage of this attribute, see the page for theinputmode HTML attribute that this property reflects.

Specifications

Specification
HTML
# dom-inputmode

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp