Hi all.

I am, using Java for drop down menus, code follows. What I have not yet been able to figure out is how to make java display the page I select in a different frame. This is what is in the <HEAD> of one of my Pages.

<SCRIPT language="JavaScript">

function navigate(form) 
{
 var go = (form.linkList.options[form.linkList.selectedIndex].value);
 document.location.href=go;
}
</SCRIPT>

My Frames page structure is as follows:

<html>

<head>
<title>Jim's Model Collection</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<frameset rows="52,*" framespacing="0" border="0" frameborder="0">
  <frame name="header" scrolling="no" noresize target="contents" src="header.html">
  <frameset cols="247,*">
    <frame name="nav" target="main" src="metnav.htm" scrolling="auto" noresize>
    <frame name="main" src="metlogo.html" scrolling="auto" noresize target="main">
  </frameset>
  <noframes>
  <body>

  <p>This page uses frames, but your browser doesn't support them.</p>

  </body>
  </noframes>
</frameset>

</html>

The following is a sample menu:

<FORM METHOD=post>
	<img src="food/images/decades.gif" width="161" height="44">
	<br>
	<SELECT NAME="linkList" onChange="navigate(this.form)">
		<OPTION Value="">Select
		<OPTION Value="30nav.htm">1930s
		<OPTION Value="40nav.htm">1940s
		<OPTION Value="50nav.htm">1950s
		<OPTION Value="60nav.htm">1960s
		<OPTION Value="70nav.htm">1970s
		<OPTION Value="80nav.htm">1980s
		<OPTION Value="90nav.htm">1990s
                  </OPTION>
	</SELECT>
</FORM>

Using the above menu, how would I make 30nav.htm display in the main frame? I have tried <base target=main> in the <HEAD>, and that did not work. In some instances, I would want it to, how to I put this so everyone understands, use target=top so I get a new display, for example, I want to load a different frames page with different menus, and filler pages. Is what I'm trying to do even possible? Does everyone understand what I'm trying to do?

Thanks.

Jim.

Sorry, this looks like a javascript question on a java forum.
Try a javascript forum.

Un, okay, sorry. I figured since the title of this area is Java forum, that this would be the area. just out of curiosity, if this is not a java forum, what kind of forum is this?

Thanks,
Jim.

This is a java forum. What you wrote is javascript

I see. Well, that goes to show you just how new I am to all of this. I did not realize that there was a difference. At any rate, I think I found the correct forum, and posted there.

Thanks,
Jim.

This question has already been answered. Start a new discussion instead.