Menu
Hi all,
I have a javascript code which makes redirection according to the navigator language of the browser. It works fine with IE and Opera but not working with FireFox.
Please help.
Ceyhun
<SCRIPT LANGUAGE=”JavaScript1.2″>
var language = navigator.userLanguage
if (language.indexOf(‘en’) > -1) document.location.href = ‘main_en.html’;
else if (language.indexOf(‘en-us’) > -1) document.location.href = ‘main_en.html’;
else
document.location.href = ‘main_tr.html’;
</SCRIPT>