Click to See Complete Forum and Search --> : Duplicate Code Question II - code attached


mereichertz
06-11-2003, 11:07 AM
Same as first message. Code attached.

pyro
06-11-2003, 11:17 AM
You are referencing your form wrong in the second function. Your form's name is LabLinks, and you were referencing it as MedLinks.

Try this:

<script LANGUAGE="javascript">
<!--
function LaboratoryLinks() {
location.href=LabLinks.lablinks.options[LabLinks.lablinks.selectedIndex].value;
}
function WebLinks() {
location.href=LabLinks.medlinks.options[LabLinks.medlinks.selectedIndex].value;
}
//-->
</script>

mereichertz
06-11-2003, 01:27 PM
It worked great! Thank you. This was making me crazy!!!

mer