I think this is a pretty simple thing to do but it's been a while and I am stuck. I have a page with a menu. The menu consists of several different languages. When user selects a language I want it to go to the next page, in that langauge.
The following is my code so far. I did not even try to go to the next page, I am just trying to write out the name first to see if it is working. I get no errors but nothing happens.
Can someone help me out? Thanks
function SelectLang()
{
var page=document.all.Langauge.value
document.write(page)
}
</script>
</head>
<body>
<select name="Language" onchange="SelectLang()">
<option id="Choose">Choose language</option>
<option id="English" value=" <option id="French" value=" <option id="Spanish" value=" <option id="German" value=" <option id="Italian" value="</select>
</body>
The following is my code so far. I did not even try to go to the next page, I am just trying to write out the name first to see if it is working. I get no errors but nothing happens.
Can someone help me out? Thanks
function SelectLang()
{
var page=document.all.Langauge.value
document.write(page)
}
</script>
</head>
<body>
<select name="Language" onchange="SelectLang()">
<option id="Choose">Choose language</option>
<option id="English" value=" <option id="French" value=" <option id="Spanish" value=" <option id="German" value=" <option id="Italian" value="</select>
</body>