This article mainly introduces the use of JS to determine the language used by browsers, the need for friends can refer to the following
The code is as follows: <script type= "Text/javascript" > var language = Navigator.browserlanguage?navigator.browserlanguage :navigator.language; alert (language); if (language.indexof (' en ') >-1) document.location.href = ' English.htm '; Else if (language.indexof (' nl ') >-1) document.location.href = ' dutch.htm '; else if (languag E.indexof (' fr ') >-1) document.location.href = ' french.htm '; else if (language.indexof (' de ') >-1) document.l Ocation.href = ' german.htm '; else if (language.indexof (' ja ') >-1) document.location.href = ' japanese.htm '; nbsp else if (language.indexof (' it ') >-1) document.location.href = ' italian.htm '; else if (Language.indexof (' pt ') &G T -1) document.location.href = ' portuguese.htm '; else if (language.indexof (' es ') >-1) document.location.href = ' S Panish.htm '; Else if (language.indexof (' SV ') >-1) document.location.href = ' swedish.htm '; else if (Langua Ge.indexof (' en ') >-1) document.locatIon.href = ' chinese.htm '; else document.location.href = ' english.htm '; </script> & nbsp