Solved

DROP DOWN LIST TO LINK TO OTHER PAGES

Posted on 1998-07-17
2
128 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
[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
 
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

Title # Comments Views Activity
ASP.net Markup for Sub Menu 2 63
Add a little space on either side of a table. 12 32
HTML INPUT 6 39
Checkbox changes display when resizing window 8 26
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

738 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