Web Analytics Made Easy -
StatCounter drop down menu - CodingForum

Announcement

Collapse
No announcement yet.

drop down menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drop down menu

    i need to add dropdown menu to my jsp page.
    can anyone help me to create the dropdown menu using javascript.

  • #2
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <script type="text/javascript">
    function themenu(what){
    if(what.options[what.selectedIndex].value=='none'){
    return false;
    }
    else {
    window.location=what.options[what.selectedIndex].value;
    }
    }
    </script>
    </head>
    
    <body>
    <select name="menu" onchange="themenu(this)">
    <option value="none">Choose a location</option>
    <option value="link1.html">Link 1</option>
    <option value="link2.html">Link 2</option>
    <option value="link3.html">Link 3</option>
    <option value="link4.html">Link 4</option>
    <option value="link5.html">Link 5</option>
    </select>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

    Comment

    Working...
    X