You did not put quotes (") around english and german so javaScript was expecting to find variables named so, is this what you are trying to do?
Also, in event handlers javascript: protocol is redundant.
Code:
<HTML>
<HEAD><TITLE>New Page 2</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<SCRIPT language=JavaScript>
<!-- Alternative selection
function changeValue(newValue)
{
document.getElementById("out").innerHTML = newValue;
}
-->
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type='button' name='button1' value='English' onClick='changeValue("english")'>
<input type='button' name='button2' value='German' onClick='changeValue("german")'>
</form>
<br>Choice is <SPAN id="out"></SPAN>.
</BODY>
</HTML>
Bookmarks