Solved

drop down menu...

Posted on 1997-04-25
2
223 Views
Last Modified: 2013-12-25
I'm using a javascript function to define a drop down menu with a number of html links.  The menu is within a frame of my document, but I want the selected link to fill the entire screen (a la TARGET="_top").  What happens with my script is that it only fills the current frame.  Here's what I've coded so far:

<FORM NAME="Companies">
<SELECT NAME="lstItem">
<OPTION VALUE="http://www.lowrance.com">Lowrance
<OPTION VALUE="http://www.northwesternmutual.com">NW Mutual Life
<OPTION VALUE="http://www.erac.com">Enterprise Rent-a-Car
<OPTION VALUE="http://www.eds.com:80">EDS
<OPTION VALUE="http://www.navistar.com">Navistar
<OPTION VALUE="http://www.prince-machine.com">Prince
</SELECT>
<INPUT TYPE="button" NAME="btnSubmit" VALUE="<--  Connect to This Company"
OnClick="window.location.assign(Companies.lstItem.options[lstItem.selectedIndex].value)">
</FORM>

Any Ideas?
0
Comment
Question by:isle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:isle
ID: 1854126
Edited text of question
0
 
LVL 5

Accepted Solution

by:
icd earned 100 total points
ID: 1854127
You almost answered your own question:

replace
OnClick="window.location.assign(Companies ...
with
OnClick="top.location.assign(Companies ...
or
OnClick="parent.location.assign(Companies ...

which according to the Netscape spec should work as you require.


0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question