Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Brawser Language detect

Javascript coding ..

Moderators: macek, egami, gesf

Brawser Language detect

Postby zodiak_bg » Tue Aug 17, 2004 1:14 am

Hi,

I need to detect the brawser language for redirecting a user to the appropriate page based on the language.

I tried navigator.browserLanguage
and for Netscape navigator.language
but the result was always [en-us] no mather what was the language set in the brawser :shock: .

Any ideas how can I solve my problem?
User avatar
zodiak_bg
New php-forum User
New php-forum User
 
Posts: 10
Joined: Sun Aug 15, 2004 8:07 am

Postby gesf » Tue Aug 17, 2004 3:38 am

Maybe with getLanguage()! document.write(getLanguage()); should work!
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron