Solved

drop down menu...

Posted on 1997-04-25
2
199 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
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now