Solved

DROP DOWN LIST TO LINK TO OTHER PAGES

Posted on 1998-07-17
2
127 Views
Last Modified: 2010-04-09
I am currently posting some of my research from the past year on my new site, and I want to be able to use a drop-down list to be able to take viewers to the part of the research they want to go(i.e., Abstract, Background, Experimental Design).  All of the separate parts are located on their own HTML page, and instead of just listing all of the links at the bottom or top, I want the small size of the drop-down list.  please e-mail me at fyushun@hotmail.com if you think you can help me. Thanks.
0
Comment
Question by:Fyushun
2 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 150 total points
ID: 1844689
Use this for your drop-down box:
<SELECT onChange="GoLink(this);">
<OPTION VALUE="backgrnd.htm">Background</OPTION>
<OPTION VALUE="technical.htm">Technical</OPTION>
</SELECT>

<SCRIPT language="JavaScript"><!--
function GoLink(s)
      {      var d = s.options[s.selectedIndex].value;
            window.top.location.href = d;
            s.selectedIndex=0;
      }
//-->
</SCRIPT>

That should do it..
0
 

Author Comment

by:Fyushun
ID: 1844690
Thank You!!!!  You were a big help MasseyM, I appreciate your help, and please let the others know how generous I am with the points!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

820 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