hi guys, I had problem in detecting the users' preferred browser language. i found out that navigator object properties only detects system related language. the .userLanguage detects local language of the user's pc,or the one used in the task bar,and being set via ControlPanel>Regional&LanguageOptions, then the .systemLanguage detects the OS language, then the .browserLanguage detects the default browser language of the system. so none of these stuffs would help me. what I need is to detect the user's preferred browser language that is being set via Tools>InternetOptions Is there any way to do that using Javascript? Hope somebody out there could help me. thanks a lot, dharyl
The reason nobody replied to your first thread was most probably because nobody has enough knowledge on the subject and nobody was willing to do research. Making a new thread is not the right way to go.
Try with this: var l_lang; if (navigator.userLanguage) // Explorer l_lang = navigator.userLanguage; else if (navigator.language) // FF l_lang = navigator.language; else l_lang = "en"; Code (markup):