This is a sample form

Checkboxes: 0, 1, or 2 may be checked.
This is checkbox #1
This is checkbox #2

Radio buttons: only one at a time may be selected.
Choice A
Choice B
Choice C

Drop-down menu: please select any one.

Code to create form:
<FORM METHOD="GET">
  <b>Checkboxes: 0, 1, or 2 may be checked.</b><br>
  <INPUT TYPE="checkbox" NAME="cb1" CHECKED> This is checkbox #1<br>
  <INPUT TYPE="checkbox" NAME="cb2"> This is checkbox #2<p>
  <b>Radio buttons: only one at a time may be selected.<\b><br>
  <INPUT TYPE="radio" NAME="rb" VALUE="A" > Choice A<br>
  <INPUT TYPE="radio" NAME="rb" VALUE="B" checked> Choice B<BR>
  <INPUT TYPE="radio" NAME="rb" VALUE="C"> Choice C<P>
  <b>Drop-down menu: please select any one.<\b><BR>
  <SELECT NAME="select1">
    <OPTION> Option 1
    <OPTION> Option 2
    <OPTION> Option 3
  </SELECT><P>
  <INPUT TYPE="text" NAME="text1" SIZE=30 VALUE="This is a small text field!">
  <P>
  <TEXTAREA NAME="text2" ROWS=10 COLS=30>
    This is a textarea. It can hold much more data than a text field and
    display it easily, including scrollbars. Pretty useful!
  </TEXTAREA><P>
  <INPUT TYPE="submit" VALUE="Submit" onClick="display()">
  <INPUT TYPE="reset" VALUE="Original Settings" >
</FORM>

JavaScript code:

<Script>
 function display() {
   var message="The following occurred:\n\n";
   if (document.forms[0].cb1.checked) {message += "Box #1 checked\n";}
   if (document.forms[0].cb1.checked) {message += "Box #2 checked\n";}
   message += "\n";
   if (document.forms[0].rb[0].checked) {message += "Choice A selected\n";}
   if (document.forms[0].rb[1].checked) {message += "Choice B selected\n";}
   if (document.forms[0].rb[2].checked) {message += "Choice C selected\n";}
   message += "\n";
   if (document.forms[0].select1[0].selected) {message += "Option 1 selected\n";}
   if (document.forms[0].select1[1].selected) {message += "Option 2 selected\n";}
   if (document.forms[0].select1[2].selected) {message += "Option 3 selected\n";}
   alert(message);
 }
 <\Script>