Vidyarthiplus (V+) - Indian Students Online Education Forum

Full Version: HTML for Simple Drop down box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<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>