Solved

drop down menu...

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.php tree directory? 5 74
how to build a intranet site 8 37
Writing and Selling Web App Based on Google Sheets 2 47
tutorial for ebay api 3 35
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

832 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