HTML for Simple Drop down box

  • 17June
  • 2012
  • 0
    2.1k
    <script language="JavaScript">

    function goto(form) { var index=form.select.selectedIndex

    if (form.select.options[index].value != "0") {

    location=form.select.options[index].value;}}

    //-->

    </script>

    <form name="form1">

    <select onchange="location=this.options[this.selectedIndex].value;"
    style="width:100%">

    <option value="" />Select

    <option value="http://gmail.com" />Gmail

    <option value="http://yahoo.com" />Yahoo

    </select>

    </form>


    Always do your best. What you plant now, you will harvest later. - Og Mandino.