Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable ime mode in google chrome

How to disable IME using css or anyother method ?My problem is that,When change language to japanese,Double byte numbers are entered in text box,I need to prevent this

I use

     style="ime-mode:disabled"

It works all other browsers except google chrome.

like image 857
Shijin TR Avatar asked Oct 21 '25 10:10

Shijin TR


1 Answers

change the attribute type to tel. It works just like ime-mode is inactive in chrome and other browsers supports html5.

element.setAttribute('type', 'tel');

I recommend you to use both ime-mode and type="tel"

style: ime-mode

Chrome          Firefox (Gecko)     IE        Opera             Safari (WebKit)
Not supported   3.0 (1.9)           5.0       Not supported     Not supported

input type="tel"

Chrome      Firefox         IE      Opera           Safari      Safari Mobile
6+          4+              10+     10.6+           5.1+        iOS 3.1+

Using Both

Chrome      Firefox         IE      Opera           Safari      Safari Mobile
6+          3.0 (1.9)       5.0     10.6+           5.1+        iOS 3.1+
like image 58
jargalan Avatar answered Oct 23 '25 01:10

jargalan