js implements focus into the text box and closes the input method: imeMode. This article mainly shares with you js to implement focus into the text box and closes 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. , hope it can help everyone.
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 opening the input method (default)
disable means turning off the input method
##
<INPUT onfocus=" this.style.imeMode='active' " /> <INPUT onfocus=" this.style.imeMode='inactive' " /> <INPUT onfocus=" this.style.imeMode='auto' " /> <INPUT onfocus=" this.style.imeMode='disabled' " />
Text box css close input method_Experience exchange
The above is the detailed content of JavaScript focus enters the text box and closes input method code sharing. For more information, please follow other related articles on the PHP Chinese website!