actually you need write events to call the appropriate function, and call the javascript function from that event, see the following
<script language="javascript>
function go(val) {
alert("selected option = "+val);
}
</script>
<select align="left" id="list" onchange="go(this)>
<option value="file">File</option>
<option value="save">Save</option>
</select>