..


Sponsored Links

How do I find the language used by browsers that visit my site?

To automatically detect the default language of the browser that you visit us, simply use this code:






 var language = navigator.language?

 



 navigator.language: navigator.userLanguage;







 document.write (language);



On this page is available an interesting script that performs the redirect based on the user's language.

In the same category ...
E-Learning
CSS (Course) CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €.
HTML (Course) HTML (Course)
The markup language for the Web from 29 €.
Javascript (Course) Javascript (Course)
Complete guide to client-side scripting. From 39 €.
Sponsored Links