Hi All,
I have a drop down menu that I am using on my website.
My homepage has 2 frames. One frame has a drop down menu and the other displays content. The way it works is that when I choose an option in the dropdown, it loads another page in the menu frame and there are links there for loading content in the main frame. I would like to change it so that when you choose an option it just loads a page in the main frame, but I can't figure out how to get the dropdown to load into another frame.
Here is the code for my drop down:
<script language="javascript"><!--
function bam(form){
if (form.location.options[form.location.selectedIndex].value == "") return;
else window.location.href =
form.location.options[form.location.selectedIndex].value;
}
// --></script>
</HEAD>
<BODY BGCOLOR="#5DBACA">
<P><FORM ACTION="" METHOD=POST>
<P><SELECT NAME=location onchange="bam(this.form)" accesskey=C>
<OPTION SELECTED>Choose a topic:
<OPTION VALUE=http://www.webdeveloper.com/forum/archive/index.php/"resources_menu.htm">Internet Stuff
<OPTION VALUE="stores_menu.htm">Online Shopping
<OPTION VALUE="ems_menu.htm">Medical Info
<OPTION VALUE="comps_menu.htm">Computer Info
<OPTION VALUE="photo_menu.htm">Photography
<OPTION VALUE="trivial_pursuits_menu.htm">Trivial Pursuits
</SELECT>
</FORM></P>
Any suggestions are appreciated,
Paul
I have a drop down menu that I am using on my website.
My homepage has 2 frames. One frame has a drop down menu and the other displays content. The way it works is that when I choose an option in the dropdown, it loads another page in the menu frame and there are links there for loading content in the main frame. I would like to change it so that when you choose an option it just loads a page in the main frame, but I can't figure out how to get the dropdown to load into another frame.
Here is the code for my drop down:
<script language="javascript"><!--
function bam(form){
if (form.location.options[form.location.selectedIndex].value == "") return;
else window.location.href =
form.location.options[form.location.selectedIndex].value;
}
// --></script>
</HEAD>
<BODY BGCOLOR="#5DBACA">
<P><FORM ACTION="" METHOD=POST>
<P><SELECT NAME=location onchange="bam(this.form)" accesskey=C>
<OPTION SELECTED>Choose a topic:
<OPTION VALUE=http://www.webdeveloper.com/forum/archive/index.php/"resources_menu.htm">Internet Stuff
<OPTION VALUE="stores_menu.htm">Online Shopping
<OPTION VALUE="ems_menu.htm">Medical Info
<OPTION VALUE="comps_menu.htm">Computer Info
<OPTION VALUE="photo_menu.htm">Photography
<OPTION VALUE="trivial_pursuits_menu.htm">Trivial Pursuits
</SELECT>
</FORM></P>
Any suggestions are appreciated,
Paul