disable ime mode in google chrome

Shijin TR picture Shijin TR · Mar 20, 2013 · Viewed 17.7k times · Source

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.

Answer

jargalan picture jargalan · Sep 8, 2014

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+