Home  >  Article  >  Web Front-end  >  The problem of input method switching in the text box in javascript_javascript skills

The problem of input method switching in the text box in javascript_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:09:591964browse

You can turn off the input method in the page input control by setting ime-mode

Want to turn off the input method: < input style ="ime-mode:disabled" >

Want to use the current input method:

When a text field does not require Chinese input, we can reduce the possibility of errors by setting the ime-mode attribute value to inactive or disabled. Similarly, we can set the ime-mode attribute value of those text fields that require Chinese input to active.

ime-mode   CSS proposal attribute

Syntax:
ime-mode: auto | active | inactive | disabled

Parameters:
auto: Does not affect the status of IME. The same as when the ime-mode attribute is not specified
active: specifies all characters entered using IME. That is to activate the local language input method. The user can still deactivate the IME
inactive: specifies all characters that are not entered using the IME. That is to activate non-native languages. The user can still deactivate the IME
disabled : Disable the IME completely. For focused controls (such as input boxes), users cannot activate IME

Description:
Set or retrieve whether the user is allowed to activate input of Chinese and Korean , input method (IME) status for Japanese, etc.
The corresponding script feature is imeMode.

This is an IE exclusive style

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn