I have tried to add multi language button to my site in the form of a select tag with options for each language which redirects to the home pages for each language.
However, this seems to work only on PC Browsers and not on Mobile browsers.
what is the problem?
Here is the my code:
<!--Changing language client side-->
<script type="text/javascript">
function Redirect_en(){
window.location="index.html";
}
function Redirect_fr(){
window.location="fr/fr-index.html";
}
function Redirect_es(){
window.location="es/es-index.html";
}
function Redirect_zh(){
window.location="zh/zh-index.html";
}
</script>
.
...
<span id="lang_header_form">
<form method="POST" id="lang_form">
<select name="language" id="lang_select">
<option value ="English" onclick="Redirect_en();" selected>English</option>
<option value = "French" onclick="Redirect_fr();">French</option>
<option value="Spanish" onclick="Redirect_es();">Spanish</option>
<option value="Chinese" onclick="Redirect_zh();">Chinese</option>
</select>
</form>
</span>