»
EnglishFrenchVietnamese

Print - Another Dropdown list box - JavaScriptBank.com

Full version: jsB@nk » Menu » Navigation » Another Dropdown list box
URL: https://www.javascriptbank.com/another-dropdown-list-box.html

Another Dropdown list box © JavaScriptBank.comThe advantage of this dropdown list to choose URLs is that there is no need for a submit button, as you can see.

Full version: jsB@nk » Menu » Navigation » Another Dropdown list box
URL: https://www.javascriptbank.com/another-dropdown-list-box.html



JavaScript
<SCRIPT>function listThem() {if (document.chooser.sitelist.selectedIndex == 0) alert("Please select something");else if (document.chooser.sitelist.selectedIndex == 1) location = 'http://JavaScriptBank.com';else if (document.chooser.sitelist.selectedIndex == 2) location = 'http://JavaScriptBank.com';else if (document.chooser.sitelist.selectedIndex == 3) location = 'http://JavaScriptBank.com'; }</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<TABLE cellPadding=5 align=center border=5 valign="middle">  <FORM name=chooser>  <TBODY>  <TR>    <TH align=middle bgColor=#deb887>Make a choice:</TH></TR>  <TR>    <TD align=middle bgColor=#deb887><SELECT onchange=listThem()         name=sitelist> <OPTION selected>Select one<OPTION>JavaScriptBank.com        <OPTION>Link item #<OPTION>Link item #</OPTION></SELECT></TD></TR></FORM></TBODY></TABLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->