Friday, May 13, 2011

How to Redirect to new page using Combo/DropDown+JavaScript

This code is used to redirect to new page location on selection of values from combo box.

Code Completely copyright by Teena soni




<script language="JavaScript" type="text/javascript">


function switchpage(select) {


var index;


for(index=0; index<select.options.length; href="select.options[index].value;">


<form action="http://www.posi.net/cgi-bin/redirect">


<select name="url" onchange="switchpage(this)">




<option value=""> Web Page Redirection Tutorial


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


</option><option value="http://www.lycos.com"> Lycos


</option></select>




<input value=" Go " type="submit">


</form>


</script>

No comments:

Post a Comment