I have a pair of <input type="text">
, each of them should contain only words from a specific language (in my case, first should have only cyrrilic letters, and the second - only latin).
I'm wondering, is there some way, using HTML, or JavaScript to automatically change my language in Windows when I set focus to these fields?
I presume, you could write a script that could automatically decode one alphabet to other? Like, for example I type into the field russian word "сфк" (which is equivalent to "car" in the other language), so I could try and set specific letters to be translated into others? So I'll have to have an array of different letters, that would be translated into? As in..
"с"(russian) -> "с"(english)
"ф"(russian) -> "a"(english)
"к"(russian) -> "r"(english)
Thank you!