Use this code
this is better than previouse one it does not change action
this one directly change Window location

Here is code
----------------------------------------------------------
<html>

<head>
<title>New Page 1</title>
</head>



<script language="_javascript_">
<!--
function doit(){
urls=new Array();
urls[0]="http://www.yahoo.com";
urls[1]="http://www.hotmail.com";
urls[2]="http://www.perl.org";
var nChosen = document.FormName1.SelectName.selectedIndex;
window.location.href="">return(false);
}

//-->
</SCRIPT>






<body>
Try this code<p>&nbsp;</p>
<form  name="FormName1" onsubmit="return doit()">
  <p><select size="1" name="SelectName">
  <option selected>www.yahoo.com</option>
  <option>www.hotmail.com</option>
  <option>www.perl.org</option>
  </select><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>

</body>

</html>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to