Drop-down Redirect - Submit : Option Select ComboBox : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Option Select ComboBox »

 

Drop-down Redirect - Submit



<html>
<head>
<title>test</title>

<script language="JavaScript">
<!--
function WinOpen() {
  var url=document.redirect.selection.value
  document.location.href=url

}

// -->
</script>


</head>
<body>

<form name="redirect">
<select name="selection">
  <option value="http://www.navioo.com">Hi</option>
  <option value="http://www.navioo.com">Bye</option>
</select>
<input type=button value="Go!" onClick="WinOpen();">
</form>

</body>
</html>



           
       



-

1 Comments

Mike

Wednesday 12th of August 2009

Is there a way to make the selected URL open in a frame?

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Option Select ComboBox