html_code_clinic thread: AW: Drop down list hyperlinks
try
<select onchange=3D"getURL(this.options[this.selectedIndex].text)">
<OPTION value=3Dpage1><A href=3D"page1.htm"> Page 1 </a></OPTION>
<OPTION value=3Dpage1><A href=3D"page2.htm"> Page 2 </a></OPTION>
<OPTION value=3Dpage1><A href=3D"page3.htm"> Page 3 </a></OPTION>
</select>
and
<script language=3D"JScript">
function getURL(str)
{
//standard
location.href=3Dstr;
//using frames
parent.frames[1].location.href=3Dstr;
}
</script>
dirk
|





