Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var userLang = navigator.language || navigator.userLanguage;
- switch(userLang){
- case 'en':
- window.location.href = 'https://www.google.com';
- break;
- case 'fr':
- window.location.href = 'https://www.okidoo.ca';
- break;
- default:
- window.location.href = 'https://www.google.com';
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement