Website Designers R Us - Home
HTML forms selection list and double clicks

Put the function below in the HTML head section between the SCRIPT tags

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--

function put_it()
   {
   var w = document.myform.sel_list.selectedIndex;
   document.myform.r_text.value = 
      document.myform.sel_list.options[w].text;
   }

//-->
</SCRIPT>

Now, we create the selection list and the text field.

<FORM NAME="myform">
<SELECT NAME="sel_list" ondblclick="put_it()" SIZE="3">
<OPTION VALUE="value1">The First Item
<OPTION VALUE="value2">The Second Item
<OPTION VALUE="value3">The Third Item
<OPTION VALUE="value4">The Fourth Item
<OPTION VALUE="value5">The Fifth Item
</SELECT>
<BR>
<INPUT TYPE="TEXT" VALUE="" NAME="r_text" SIZE="20">
</FORM>
Return to Listing

Website Designer R Us is the right company to get your job done professionally and cost effectively. We've seen the good, the bad, and the ugly, and we are here to help you by recommending the services that match your needs based on our knowledge of other website designers and web design companies whom can perform the type work you are needing.
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2007 Website Designers R Us, a DOT Specialist Company. All rights reserved.