Combo box link sample

Written by @kerixa 21 August 2012

When a user choose a link from the drop down combo box and clicks on the button, a pop up will appear and moves to the chosen link.

Code Snippet:

                                                <!-- this script is provided by coded by: Kerixa Inc. -->
<!-- This script opens a separate window for the locations you give it.
Pages are neat but pictures make a cool photo album. Change the 
attributes that read menubar=0,toolbar=0, etc... and Width & Height 
to meet your needs.  Make sure you place the URL's you want to go 
to and their names below.-->

<script language="JavaScript">
<!-- Hide the script from old browsers --
function surfto(form) 
  var myindex=form.dest.selectedIndex[myindex].value,"main","menubar=1,toolbar=0,location=0,directories=0,status=1,copyhistory=0,width=235,height=235");
<FORM NAME="myform">
  <SELECT NAME="dest" SIZE=1>
    <OPTION VALUE="">CoffeeCup Software
    <OPTION VALUE="">Too Much Coffee Man
    <OPTION VALUE="">Netscape
    <OPTION VALUE="">InfoSeek
<INPUT TYPE="BUTTON" VALUE="Go  !" onClick="surfto(this.form)">
</CENTER><a target='_blank' href='' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>                                                


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!


Online Users: 12
Recent Members: 092010, iamatoi, Bongani Radebe,, Jack the gripper♡
advertisement 2