Thursday, March 1, 2012

Combo Box

Combo Box





 <form name="mycombowopt">
<select  name="example" size=1>
    <option value="http://lrnnewtngs.blogspot.in">Learn New Things</option>
    <option value="http://google.com">Google</option>
    <option value="http://geocities.com">Geocities</option>
  </select>&nbsp;<input type="button" value="Go!" onClick="gothere()"> <br>
  <input type="checkbox" name="windowoption" value="ON">Open in alternate window</p>
</form>

<script language="javascript">
<!--

/*Combo box
-By Md Hassan [ facebook.com/hassan17850 ]
Over 200+ free scripts here!
*/

function gothere(){
var thebox=document.mycombowopt
if (thebox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("")
newwindow.location=
thebox.example.options[thebox.example.selectedIndex].value
}
else
location=
thebox.example.options[thebox.example.selectedIndex].value
}
//-->
</script>


EmoticonEmoticon

Drop categories