Method 1: Disable Chinese Input Methods
View sourceprint?
< Input Type = "Text" Style = "Ime-mode: Disabled" > |
Method 2: Disable pasting, drag and drop, and disable Chinese input methods!
This method is the strongest way to disable Chinese input.
View sourceprint?
<Input type = "Text" Onpaste = "Return false" Ondragenter = "Return false" Oncontextmenu = "Return false ;" Style = "Ime-mode: Disabled" /> |
The most powerful and concise statement [do not enter Chinese characters]
Method 1: Disable Chinese Input Methods
View sourceprint?
< Input Type = "Text" Style = "Ime-mode: Disabled" > |
Method 2: Disable pasting, drag and drop, and disable Chinese input methods!
This method is the strongest way to disable Chinese input.
View sourceprint?
<Input type = "Text" Onpaste = "Return false" Ondragenter = "Return false" Oncontextmenu = "Return false ;" Style = "Ime-mode: Disabled" /> |
The most powerful and concise statement [do not enter Chinese characters]