I am trying to create a combo box, with pull-down items, whereby each entry is a hyperlink to a specified file. Can this be done using only html and does anyone know how to do it? If not, should I be tackling this in a different way?
[noparse]<html>
<head>
<script type="text/javascript">
function urlopen(target)
{
window.open(target)
}
</script>
</head>
<body>
<p ALIGN=Center>
<center>
<h1>Example of Form with a Combo Box Hyperlinked using JS</h1>
</center>
</p>
<form>
<p>Choose?
<select NAME="Choose">
<option VALUE="ABC" onclick="urlopen('*www.google.com')">Google</option>
<option VALUE="DEF" onclick="urlopen('*www.yahoo.com')">Yahoo</option>
<option VALUE="WHATEVER" onclick="[/noparse][b]urlopen('pagename.html')[/b][noparse]">FILE</option>
</select>
</p>
</form>
</body>
</html>[/noparse]
<script type="text/javascript">
function go()
{
window.location=document.getElementById("menu").value
}
</script>
----------------
and in html body
<select id="menu" onchange="go()">
<option>Select Year</option>
<option value="display/und_const.html">2007</option>
<option value="display/und_const.html">2006</option>
--------------------