Solved

drop down menu...

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

867 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

12 Experts available now in Live!

Get 1:1 Help Now