Home > Web Front-end > JS Tutorial > Share the core code for closing the input method when the focus enters the text box in JavaScript

Share the core code for closing the input method when the focus enters the text box in JavaScript

黄舟
Release: 2017-09-22 09:39:43
Original
1639 people have browsed it

This article will share with you js to implement focus into the text box and close the input method. The code is simple and easy to understand, very good, and has reference value. Friends who need it can refer to it

js to implement focus into the text Close the input method in the box: imeMode

Things to be used: imeMode:xxx

has four parameters

active means the input method is Chinese

inactive means the input method is English

auto means open the input method (default)

disable means close the input method


<INPUT onfocus=" this.style.imeMode=&#39;active&#39; " />
<INPUT onfocus=" this.style.imeMode=&#39;inactive&#39; " />
<INPUT onfocus=" this.style.imeMode=&#39;auto&#39; " />
<INPUT onfocus=" this.style.imeMode=&#39;disabled&#39; " />
Copy after login

Summarize

The above is the detailed content of Share the core code for closing the input method when the focus enters the text box in JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template