title: Changing onClick value through radio buttons
body: <p>I am quite new to all this and wondering if someone can help with something. I have the code below which when the button is clicked is references a javascript file and populates a random english word. I am wanting to change it to add a radio button. The radio button will allow the user to select an english word or french word. How can I change my <code>onClick</code> command to use the value of the selected radio button?</p>
  
  <pre><code>&lt;FORM NAME="Generator"&gt;  
      &lt;INPUT TYPE=TEXT NAME="WordBox" id="wordbox"&gt;&lt;BR&gt;
      &lt;INPUT TYPE=BUTTON VALUE="Generate" onClick="English(document.WordForm);" id="button"&gt;
  &lt;/FORM&gt;
  </code></pre>