Redirect the page on dropdown

Saratvaddilli
Posted by Saratvaddilli under JavaScript category on | Points: 40 | Views : 1059
<script language="JavaScript" type="text/javascript">
function redirect(site){
window.location= site
}
</script>
<select onchange="redirect(this.value)">
<option value="#">Where would you like to go?</option>
<option value="http://www.Dotnetfunda.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Ask</option>
</select>

Comments or Responses

Login to post response