views:

45

answers:

2

When a user sets his focus in an input box can I set the regional language with JavaScript?

How would I do this?

+5  A: 

No.

JavaScript doesn't have that kind of control over the client browser by design. Moreover regional input and related features are OS-level settings and differ in method and invocation by OS.

Welbog
So its `status-bydesign`?
voyager
@voyager: You're damned right it is.
Welbog
@Welbog: Stop black mailing voyager!
Geoffrey Chetwood
A: 

Set the language of page or browser? Language of the page -> Reload the page:

<input onfocus="window.location = "http://mypage.com/index_de.html";" />
cimnine